parsing XML using cElementTree in python

I have a problem with parsing an XML file using python, namely - syntax. My XML files look like this one: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE chunkList SYSTEM "ccl.dtd"> <chunkList> <chunk id="ch1" type="p"> ...
more »

2017-11-11 17:11 (1) Answers

Java: Child Node values are null

My xml (created by calling a Powershell command through Java): <?xml version="1.0" encoding="UTF-8"?> -<Objects> -<Object> <Property Name="DisplayName">Adobe AIR</Property> <Property Name="Display...
more »

2017-11-11 16:11 (1) Answers

xml with namespace not getting parsed in perl

I have an xml with default namespace something like this: <?xml version="1.0" encoding="utf-8"?> <start xmlns:xsi="" xmlns:xsd="" xsi:schemaLocation=" ...
more »

2017-11-11 11:11 (1) Answers

Resolving relative paths when using ph-schematron

I'm using ph-schematron, a Java library that validates XML documents via ISO Schematron: This library provides 2 ways of XML document validation: Validation via XSLT Validation via Pure Schematron I would love to use the second type, but my Sche...
more »

2017-11-10 16:11 (2) Answers

Working Multiple Layouts show in a GridView

I'm developing an Android app to show gauges. There are different type of gauges (gauge1.xml, gauge2.xml like that). What i want to do is load different types of gauge layout xml file to main grid view using JSON Array. Each Grid cell contains diffe...
more »

2017-11-10 08:11 (2) Answers

How do I break down large XPaths in XSLT?

I'm writing some product exports in XSLT and I have some fairly large select statements, as I have these sort of nested sorts/headers Given a select statement such as... /objects/object/items/item[ not( custom_options/custom_option[brac...
more »

2017-11-09 16:11 (1) Answers

Select an element in nested XML in SQL Server

I have a column with XML contents in a SQL Server table. Actually, several different XML's are merged together in this particular XML column. When I do select columnwithXML.query('(/root/secondlayer/node())').value('(/*)[11]', 'varchar(max)')...
more »

2017-11-09 15:11 (1) Answers

XSLT Identity Transform logic

From what I understood, the XSLT Identity transform template works by iterating through the XML structure and copying all the child nodes and attributes. But when I try to override a node to make some changes by using match with <xsl:template>...
more »

2017-11-08 22:11 (2) Answers

Search and replace an XML field content with SAX

In my Java mapping, I need to search and replace an ASCII control char (BEL - 0x07) which is breaking the mapping routing as the XML can't be parsed. The current java mapping, although hard coded for the control char (just to be simple and make it w...
more »

2017-11-08 20:11 (0) Answers

generate a full XML file with python

I need to machine generate (not to parse!) a (possibly complex) XML file in Python. I am (relatively) familiar with xml and lxml modules, but it's unclear to me how to generate a valid XML checked against an xsl spec. What I need to build is someth...
more »

2017-11-08 17:11 (1) Answers

Unmarshaling XML

I'm trying to unmarshal existing xml file so that i can handle the data properly but the XML structure looks weird. below is the sample of the xml together with the objects I've created. <?xml version="1.0" encoding="UTF-8"?> <Record> &...
more »

2017-11-08 07:11 (1) Answers

Prevent class property from being serialized

I added attribute serializable to class but, due to this, class property is getting serialized. I used [XmlIgnore] to all property but still it is serializing the property [Serializable] public class Document { [DataMember] [XmlIgnore] ...
more »

2017-11-07 10:11 (4) Answers

Unmarshal XML Comments

I am trying to unmarshal XML from RRD format. So I create my types etc, etc. which I am able to get the values from. But there are comments in the XML in this format <!-- 2017/01/01 --> and I need to extract this date. Is there any way of acc...
more »

2017-11-06 14:11 (1) Answers

Solving Web-service Objects/Instances

I am getting this error after sending my request: System.ServiceModel.FaultException`1[FinancierAPITester.SITCustomerServiceReference.ApiError]: Unable to process the request as an attempt was made to create an abstract class. (Fault Detail is e...
more »

2017-11-06 11:11 (1) Answers