CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #30779

Add support for namespaces in XML handling

Added by Francois Suter over 1 year ago. Updated 11 months ago.

Status:Closed Start date:2011-10-11
Priority:Must have Due date:
Assignee:Francois Suter % Done:

100%

Category:Import process
Target version:2.0.0
Votes: 0

Description

It is currently not possible to target a node in a XML structure if it has a namespace prefix. The same is true for an attribute.

Also check how that works with XPath queries.

Associated revisions

Revision 52881
Added by Francois Suter over 1 year ago

Added partial support for namespaces. Needs more testing, missing in XPath.
references #30779

Revision 52881
Added by Francois Suter over 1 year ago

Added partial support for namespaces. Needs more testing, missing in XPath.
references #30779

Revision 63254
Added by Francois Suter 12 months ago

Added support for namespaces in XML handling, resolves #30779

Revision 63254
Added by Francois Suter 12 months ago

Added support for namespaces in XML handling, resolves #30779

History

Updated by Francois Suter over 1 year ago

News properties "fieldNS" and "attributeNS" need to be added to documentation (and to the information window):
  • fieldNS: namespace for the given field. Use full URI of namespace, not prefix.
  • attributeNS: namespace for the given attribute. Use full URI of namespace, not prefix.

Updated by Francois Suter 12 months ago

A note for possible future reference: when implementing this feature I wondered if it would be possible to use prefixes right in the "field" or "attribute" property and refer to the corresponding namespace automatically in the importer to simplify the configuration. At the time I failed to find how to gather the existing namespaces. This is actually not simple, since namespace declarations may happen on any node in the structure and not only on the root node. So although there's a way to get existing namespaces with XPath, it would be pretty demanding IMO to gather all namespaces along a given branch. This feature could still be implemented in the future, but may not be trivial and the processing cost should be evaluated.

Updated by Francois Suter 12 months ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r63254.

Updated by Francois Suter 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF