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.
PHP provides two functions to parse XML... xml_parser_create() and xml_parser_create_ns(). We have a wrapper for the first (drupal_xml_parser_create), but not for the second. This patch adds a $namespace parameter to drupal_xml_parser_create() which defaults to false and is backwards compatible.
Comment | File | Size | Author |
---|---|---|---|
xmlparser.patch | 1.07 KB | Steven | |
Comments
Comment #1
walkah CreditAttribution: walkah commented+1 . nice patch, and i can use it :)
Comment #2
Dries CreditAttribution: Dries commentedHow about we always use xml_parser_create_ns() and get rid of the parameter? It seems like good practice to always use support for namespaces. Haven't tested it so we might have to rewrite some bits and pieces -- if that would give us different parsers output.
Comment #3
chx CreditAttribution: chx commentedComment #4
Jaza CreditAttribution: Jaza commentedBump.
Comment #5
jhedstromParsers are now services that can be swapped as needed.