-
Hello all,
I've noticed that, when I use the TransformerFactory to create a new Transformer, the start and end tags of an element that contains no text are automatically replaced by a self-closing tag. More specifically, if I use the following code
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(
new StreamSource(new...
2009-12-23 10:42:56 UTC by darthwilly
-
Hello all,
I've noticed that, when I use the TransformerFactory to create a new Transformer, the start and end tags of an element that contains no text are automatically replaced by a self-closing tag. More specifically, if I use the following code
TransformerFactory factory = TransformerFactory.newInstance();
Transformer transformer = factory.newTransformer(
new StreamSource(new...
2009-12-23 10:39:45 UTC by darthwilly
-
Input:
Output (Now)
2009-11-12 04:10:59 UTC by asfak
-
I am using dom4j 1.6.1. When I write the following input document to an output location using the following code the output changes the location of processing instruction and DOCTYPE. In the input processing instruction comes before DOCTYPE. But in the output it comes after the DOCTYPE. I want my output should be as it is in input.
INPUT:
<?xml version="1.0" encoding="UTF-8"?>
...
2009-11-12 04:04:15 UTC by asfak
-
Followup: RE: SaxReader throws Exception?
Do you mean this type of error ?
Caused by: org.hibernate.MappingException: Could not parse mapping document in input stream
at org.hibernate.ejb.Ejb3Configuration.addXMLEntities(Ejb3Configuration.java:499)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:369)
at...
2009-10-14 21:09:55 UTC by jamestansf
-
I have a program that reads from a big xml file, and it have a big list of complex tags.
For some nodes in the xml list i get only a portion of the text, just to check if it was really a bug, i try to put some spaces inside xml and this affects the text that is cut.
I am using valueOf(xpath); to get the value.
2009-08-21 17:13:28 UTC by kulhas
-
When an XPathException gets caused by another exception, only the message gets remembered, all the rest of the information that comes with the cause exception gets discarded. This is especially tragic when the cause again had a cause. In one case, it took me a whole day to find out that the real cause of an XPathException was a FileNotFoundException.
2009-08-03 14:32:14 UTC by ipreuss
-
I am suffering exactly the same issue when using dom4j + android. Every call to obtain an attribute returns always the same (the first obtained) attribute.
It can be fixed doing :
if (qualifiedName == null && !qualifiedName.equals("")) {
qualifiedName = localName;
}
But as Matthias said, I don't know if that is the right solution.
2009-07-31 09:40:32 UTC by guigar