According to the standard, "XML namespaces provide a simple method for qualifying element and attribute names used in Extensible Markup Language documents by associating them with namespaces identified by URI references."
0
votes
1answer
5 views
Find all prefix:url namespaces in an XML file - quickly
We need to find all prefix:namespace pairs in an XML file. We allow users to supply any XML file and any XPath to query on it. We need to find the prefix:uri mappings to set those when the XPath is ...
1
vote
0answers
12 views
Intellij jaxb xjc schema location for content assist
I'm using JAXB for generating code. Now I'm trying to add the XJC namespace to the custom bindings.xjb file, but IntelliJ Idea 12 won't find the namespace. The xmlns:xjc="..." row is marked red, and ...
0
votes
1answer
25 views
How To Add “:” (namespace prefix) in XAttribute Name in Xml
i have one xml file and using in silverlight.
doc.Descendants(xamlparent).FirstOrDefault().Add(new XAttribute("x:Class","WorkflowConsoleApplication1.modify"));
but in this ":" hexadecimal cause ...
0
votes
3answers
21 views
XSL output XML with no prefix without using the default namespace?
I have an XSL where I need to generate output along the lines of this:
<moo xmlns="http://api.example.com">
<foo>1358944586848</foo>
<bar>
<a>1</a>
...
0
votes
2answers
56 views
XElement.element() returns null sometimes
I'm loading an XML file, getting the values of some nodes and then setting those values into an object.
The problem is that although I can get into the each node, I can't get its value: it just ...
0
votes
1answer
13 views
How add empty namespace to simpleXML element
In order to simulate XML retrieved from a SOAP web service in a local php test environment version of the web service, I wish to add an empty namespace to an element, just as supplied by the actual ...
1
vote
0answers
58 views
XamlParseException when using XmlnsDefinition without <AssemblyPart> in AppManifest.xml in WP
In my WP7 solution I have a PhoneClassLibrary1 assembly.
In its AssemblyInfo.cs I have
[assembly: XmlnsPrefix("FooNamespace", "cl")]
[assembly: XmlnsDefinition("FooNamespace", "PhoneClassLibrary1")]
...
0
votes
2answers
35 views
what's the best way to query an XML document if you don't know the name of the URI associated with the xmlns attribute?
I don't want to hard-code the URI and then have to assign a prefix before I can use an XPath expression to select nodes from the XML document. Is it possible to retrieve this information ...
1
vote
1answer
33 views
XML without namespace
I need to extract an XML out of an envelope. But I am not able to get my intended output.
I need to get rid of the namespaces in my output.
My Input:
<ns1:input xmlns:ns1="http://mysapmle.org/" ...
1
vote
1answer
40 views
XML not picking up <camelContext> tag
this is probably a simple mis configuration problem but I am having an issue with my xml document picking up my tag. I am getting the error
"Multiple annotations found at this line:
- ...
0
votes
0answers
9 views
How would one get Google XML Pages to recognize and allow new HTML 5 elements?
Google XML Pages say they support "standard html as long as it's formatted as xml" but they seem to only support html 4.0. The namespace used for supporting html is http://www.w3.org/1999/xhtml and ...
2
votes
1answer
27 views
Applying xpath on xml with default namespace with XOM
I have below XML which contains a default namespace
<?xml version="1.0"?>
<catalog xmlns="http://www.edankert.com/examples/">
<cd>
<artist>Stoat</artist>
...
1
vote
1answer
12 views
How to resolve Visual Studio's Unrecognized namespace warnings?
The screenshot says it all. How does one resolve such warnings?
0
votes
1answer
41 views
Identify XML by xmlns in XPath
How can I differentiate between these two pieces of XML with XPath in Java?
<iq type="result">
<query xmlns="jabber:iq:roster">
</query>
</iq>
and
<iq ...
1
vote
2answers
47 views
Dom4j selectNodes(arg) don't give list of nodes
I am using DOM4j for XML work in java,
my xml is like this:
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<abcd name="ab.catalog" xmlns="http://www.xyz.com/pqr" ...