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 import data from a feed but one of the namespaces that has been used is not valid XML in that it is all uppercase instead of camel case.
I am able to import from any XML element except the ones using this namespace - is there a way to force feed import to accept those elements or another way of using xpath to reference those fields?
e.g.
<validNamespace:myElement>Value1</validNamespace:myElement>
<CAPSNAMESPACE:element>Value2</CAPSNAMESPACE:element>
I can access the value of the first element with xpath to validNamespace:myElement but if I try to reference CAPSNAMESPACE:element I get nothing.
Any suggestions welcome
Comments
Comment #1
Sorin Sarca CreditAttribution: Sorin Sarca commentedHi,
for namespaces you should you as proces function "processXML" and in Process function settings you should fill your namespace(s).
If this doesn't help you, please provide a small sample of your xml file.
Comment #2
Sorin Sarca CreditAttribution: Sorin Sarca commented