Is the c namespace prefix declared? It looks like it's not.
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Adam
Henderson
Sent: Wednesday, May 24, 2006 8:47 AM
To: [email protected]
Subject: [dom4j-user] XLS with XML containing JSP tags - weird!
Hi All,
Hope this is the right place to ask and somebody could help.
I've got an XML file which is similar to XHTML but also has jps tags (
c:if
test="blah...") embedded. When I do my transformation I get:
org.dom4j.DocumentException: Error on line 439 of document:
The prefix "c" for element "c:if" is not bound. Nested exception: The
prefix "c"
for element "c:if" is not bound.
at org.dom4j.io.SAXReader.read(SAXReader.java:482)
blah...
Below is a snippet from my method that does the conversion from a string
into a
Document object..
286 // Read file as a string
287 String fileAsString =
FileUtils.readFileToString(mySourceFile,"utf-8");
288
289 // Convert to a Document object
290 Document srcDocument = DocumentHelper.parseText(fileAsString);
My source XML looks a little like this..
438 <div id="items">
439 <c:if test="${not empty tariffs}">
440 do something
441 </c:if>
442 </div>
Anybody got any idea?
Many thanks,
Adam.
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications
in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
dom4j-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dom4j-user