2,463 questions
1 vote
0 answers
75 views
XmlSerializer does not deserialize XmlAttributes with a Namespace-Prefix. Bug? [duplicate]
I am trying to deserialize a given piece of XML that looks like this: <?xml version="1.0" encoding="utf-8"?> <tst:myRootElement xmlns:tst="myGivenNamespace"> ...
1 vote
3 answers
129 views
What is an example of an XML file merge using Saxon and an XSLT 3.0 stylesheet?
I need to merge Saxon Documentation - merge one node from the source XML file merge.xml into the file merge-test.xml, positioning the node in between two other nodes in the output file output.xml. No ...
1 vote
2 answers
68 views
Sort entries in an XML file using Saxon 12.9 and an XSLT 3.0 stylesheet
I'm trying to sort entries in an XML file using Saxon, Saxon:sort and an XSLT 3.0 stylesheet. I need to sort the nodes by the date in the <blogger:filename> field, which has the date as part of ...
2 votes
1 answer
70 views
Remove an XML node with Saxon using an XSLT 3.0 stylesheet
What's a simple example of removing a node from an XML file using Saxon 12.9 and an XSLT 3.0 stylesheet? I've got an XML export from Blogger, and I'm puzzled on how to remove just the COMMENT entries ...
-1 votes
1 answer
106 views
C++Builder 12 problem with XML prefixes - property Text from IXMLNode is always empty
If I try to read an XML document without prefixes, it works fine. But with prefixes, I'm not getting the content. Sample: <rsm:CrossIndustryInvoice xmlns:a="urn:un:unece:uncefact:data:standard:...
0 votes
2 answers
116 views
Use xmlstarlet and XPath to find/replace HTML entities in an XML node
I have content in the XML node <content type='html'> which uses the HTML entities < and > for < and > , i.e. in input.xml: <?xml version='1.0' encoding='utf-8'?> <...
1 vote
1 answer
72 views
Use xmlstarlet to remove node if it contains a certain node
I'm trying to remove all the comments from an XML export of a Blogger blog. This involves finding and deleting each <entry> that contains a child node of <blogger:type>COMMENT</blogger:...
1 vote
1 answer
37 views
JAXB (javax.xml.bind) won’t unmarshal nested <TMI> element (siblings bind fine). How should I annotate?
I’m unmarshalling an incoming XML into POJOs using JAXB (javax.xml.bind) with @XmlAccessorType(XmlAccessType.FIELD). Most fields under bind correctly for me (e.g. asFer, square, SOY, ab), but the ...
0 votes
1 answer
104 views
Is it possible to edit the text or HTML contents of an XML node using xmlstarlet?
The answer to my earier question How do I access an XML node that uses quote marks with xmlstarlet? shows how to access a node using the namespace, and in that case, deleting the entire node. ...
1 vote
1 answer
55 views
How do I access an XML node that uses quote marks with xmlstarlet?
I'm trying to learn how to use xmlstarlet 1.6.1 https://xmlstar.sourceforge.net and I can't find how to escape the quotes or otherwise get xmlstarlet to recognize <content type="html"> ...
1 vote
1 answer
72 views
How to stop NAMESPACE-URI string from repeating in DATA-RELATION in Openedge Progress
I am using TEMP-TABLE files with DATA-RELATIONs and WRITE-XML function to create XML files. However, the NAMESPACE-URI value is printing in both the document header and the first data tag: xmlns=&...
0 votes
0 answers
63 views
How to fix the missing DTD namespace declaration error of DOMDocument::validate() in PHP, resulted by reading a non-standard SVG file?
I got SVG files exported from Coreldraw or Inkscape: Coreldraw exported SVG file header: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG ...
1 vote
1 answer
81 views
How can I omit a namespace in xslt output?
I have this XML <?xml version="1.0" encoding="UTF-8"?> <item xmlns="http://www.p-corp.com/ns/pyxml" version="2.2" xml:lang="en-us"> &...
1 vote
1 answer
89 views
Iterate xml using namespace prefix
I have an xml file with a default namespace, like this: <?xml version="1.0" encoding="utf-8"?> <root xmlns="somelongnamespace"> <child>...</child&...
1 vote
0 answers
55 views
Canonical XML 2.0 with Namespace PrefixRewrite
I'm writing a Nuget Package (which I'll post as Open Source to Github once it's done) that implements xml canonicalization using the Canonical XML Version 2.0 (c14n2) spec. I've also been using Test ...