This page is for data modellers who are transferring XML data via HTTP.
Overview
Use the XML namespace properties to specify the namespaces defined in an XML response. PhixFlow needs this information because an XML namespace ensures the names, elements and attributes in the file are unique. An XML instance may contain element or attribute names from more than one XML vocabulary. If each vocabulary is given a namespace, the ambiguity between identically named elements or attributes can be resolved.
This property tab is not available from the repository. It opens from the XML Namespaces section in:
The default namespace is xmlns="urn:xmlns:company-com:message"
You use the alias home in XPath expressions, you can enter home in this field.
See HTTP Collectors for examples of using namespaces in XPath expressions to extract data from XML responses.
Value
Enter the value of the XML namespace. For example:
http://schemas.xmlsoap.org/soap/envelope/
Audit Tab
Audit Tab
Audit Summary
See the Common Properties page, Audit Summary section.
Using Default Namespaces
Documents can use:
a namespace to refer to an element
a default namespace to refer to any element in an XPath expression that does not explicitly use a namespace.
If a document uses a default namespace, you must define an XML namespace name for it. The following example shows how a default namespace defined in an XML response is handled.
In this document the default namespace is "urn:xmlns:company-com:message". To extract all the record elements from the document, in the file or HTTP collector, set the:
XML namespace to have a default namespace, for example def.
Response section → XPath field to extract the records from the default namespace: //def:record.
More commonly, you will want to extract an element from a record to add it to the table that reads from this collector. In this case, use the other namespaces, such as xmlns:pf="urn:phixflow.message.com". For example, to write the value from the element Name within each record element to a attribute, use the attribute expression in.sf$Name.