needed needed

Post by j » Wed, 12 May 2010 14:33:49


I'm writing this on behalf of my wife, so sorry, my cluse about Java
and XML are very limited. ;-)

In order to get ant the ability to work with XML catalogs (so it
doesn't have to fetch all XML schemes through the Internet all the
time), it needs access to a "CatalogResolver" class which is part of
Apache's xml-commons:

I couldn't find that anywhere in any of the ports. Would it make
sense to add this as a prerequisite (maybe as an option) to
devel/apache-ant? Or maybe as a standalone port (but then, how would
ant get it into its CLASSPATH)?

cheers, J"org .-.-. --... ...-- -.. . DL8DTL ~joerg/ NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)
XXXX@XXXXX.COM mailing list
To unsubscribe, send any mail to " XXXX@XXXXX.COM "

1. How to get assistance with org.apache.xml.serialize.XMLSerializer

2. org.apache.xml.serialize.XMLSerializer problem with UTF-8

I must be missing something.

I am using org.apache.xml.serialize.XMLSerializer to save a DOM but I am not
getting non-basic characters converted to UTF-8.

I create Text nodes in the DOM by, for example:

Document doc;
JTextArea textPrompt;
Text newTextNode;
Element descElt;
newTextNode = doc.createTextNode(textPrompt.getText());

The code to serialize the DOM is:

private void saveXml(Document document)
// rename the existing layout file
new File(fileName).renameTo(new File(fileName + "~"));
// write the document out
OutputFormat format = new OutputFormat(document);
try {
XMLSerializer serializer;
serializer = new XMLSerializer (
new FileWriter(fileName),
catch (IOException ioe)

If I enter a character such as e' (e with acute accent) into the JTextArea
and I look at the XML file using a non-UTF-8-aware editor I see that the e'
has been inserted as a single byte, not as the 2 character UTF-8 escaped
value. If I subsequently try to read the XML file using XERCES it blows up
because of the invalid escape sequence.

How do I get a valid serialization of this DOM into XML using UTF-8?

34 Palomino Dr.
Kanata, ON, CANADA
K2M 1M1

3. UTF-8 incorrect from org.apache.xml.serialize.XMLSerializer

4. Xerces2-J

5. Apache Axis2 - org.apache.axis2.AxisFault: Transaction not active

6. Apache FileUpload - java.lang.NoClassDefFoundError: org/apache/commons/io/FileCleaner

7. Problems running Apache FOP: fatalError

8. needed urgent "

9. uninstalling org plus as powerpoint org chart tool

10. Need help: org.xml.sax.SAXParseException

11. Need help with Inter-Org Replication Tool

12. Apache XML-RPC help needed

13. new at "": XML tools (again) + OO tools + very rude tools

14. confused wiht the full resolver and stub resolver