dom4j Questions

7

Solved

I have a small problem with XPath contains with dom4j ... Let's say my XML is <Home> <Addr> <Street>ABC</Street> <Number>5</Number> <Comment>BLAH BLAH ...
Guenna asked 7/9, 2010 at 3:26

1

Solved

I have a method like below. I've set the FEATURE_SECURE_PROCESSING to true. public String getString(org.w3c.dom.Node node) throws TransformerException { StringWriter writer = new StringWriter(); ...
Guan asked 6/8, 2020 at 22:19

5

Solved

I get the following exception when trying to access any nodes of a parsed xml document on dom4j: Exception in thread "main" java.lang.NoClassDefFoundError: org/jaxen/JaxenException at org.dom4j.D...
Terreverte asked 3/11, 2009 at 19:29

3

Just trying to find a way to convert a Dom4J Document content to String. It has a asXML() API which converts the content to a XML. In my case,I'm editing a non-xml DOM structure using Dom4J and try...
Chastain asked 7/4, 2011 at 1:48

5

We are using dom4j 1.6.1, to parse XML comming from somewhere. Sometime, the balise have mention of the namespace ( eg : ) and sometime not ( ). And it's make call of Element.selectSingleNode(Strin...
Cupriferous asked 14/9, 2009 at 15:48

2

Solved

I want to use DOM4j for parsing xml file in Java. I have this XML as an example: <request method="POST" url="/devices/test/planner" body="*"> <response statusCode="200"> <header...
Touched asked 13/1, 2012 at 16:13

2

Solved

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" xmlns:xsi="htt...
Zucchetto asked 14/1, 2013 at 11:12

11

I'm looking for something like dom4j, but without dom4j's warts, such as bad or missing documentation and seemingly stalled development status. Background: I've been using and advocating dom...
Nathanielnathanil asked 6/5, 2009 at 21:29

3

Solved

My XML is structured like the example below. I'm trying to get the attribute values out of XML using dom4j. <baz> <foo> <bar a="1" b="2" c="3" /> <bar a="4" b="5" c="6" /&...
Hispanic asked 12/9, 2012 at 14:33

2

Solved

Using dom4j DOMDocument to feed validator.validate(DOMSource) fails in java 1.6 (with xsi:noNamespaceSchemaLocation is not allowed to appear in root element), works in 1.5 I'm finding the followin...
Burgwell asked 22/2, 2011 at 16:18

2

Solved

I have downloaded dom4j-1.6.1 and added it to java's build path. I am also familiar with java.lang.NoClassDefFoundError: org/saxpath/SAXPathException but I keep getting an exception. Enclosed a sn...
Indices asked 17/10, 2012 at 11:48

2

Solved

I have a class called XMLtoXML.java and this is one of it's methods... import org.dom4j.Document; import org.dom4j.Element; import org.dom4j.Node; import org.dom4j.io.OutputFormat; import org.dom4...
Deanedeaner asked 25/1, 2012 at 11:39

1

Solved

I have a org.dom4j.Document instance that is a DefaultDocument implementation to be specific. I would like to insert a new node just before an other one. I do not really understand the dom4j api, I...
Fortyfour asked 27/9, 2011 at 15:5

1

Solved

I have some classes that already use DOM4J to read XML files and provide getter methods to the data. Now, I need to add the possibility of checking XML digital signatures. Using org.w3c.dom and f...
Deliberate asked 29/7, 2011 at 12:15

2

Solved

I have a given xml structured like this: <elem> <val id="1">aaa</val> <val id="2">bbb</val> </elem> With SAXReader (DOM4J), how can I get the value containe...
Discobolus asked 22/3, 2011 at 11:27

1

Hope you have a good day. The Dom4j javadoc form Node.selectObject(String xpathExpression) says the following: ...The object returned can either be a List of one or more Node instances or a scala...
Specialty asked 7/1, 2011 at 17:55

1

Solved

For example consider the following xml <root> <childNode attribute1="value1"> <grandChildNode attrib1="val1" attrib2="val2">some content1 </grandChildNode> <grandChi...
Wileen asked 31/3, 2009 at 12:45
1

© 2022 - 2024 — McMap. All rights reserved.