Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I need to parse an XML-document. The following does work:
item_selector: '/publication-template:GetResponse/core:result/core:content'
print_r($this->elementsToMatch);
Returns the following:
(
[0] => publication-template:GetResponse
[1] => core:result
[2] => core:content
)
This one does not work with the module, but with standard xPath:
/*[local-name()="GetResponse"]/*[local-name()="result"]/*[local-name()="content"]
print_r($this->elementsToMatch);
Returns the following:
(
[0] => *
)
And no elements are imported this time.
Comments
Comment #2
Karthons CreditAttribution: Karthons commentedComment #3
mstef CreditAttribution: mstef commented(disregard my comment)