Node.appendChild(Node node)

2001-10-25 Thread Richard Wu
ibute = targetDocument.createAttribute(sourceAttribute.getNodeName()); targetAttribute.setNodeValue(sourceAattribute.getNodeValue()); targetNode.appendChild(targetAttribute); Any idea of what's happening here? Thanks for any hint or suggestion! Richard Wu

How to convert an XML dom to a string again

2001-09-28 Thread Richard Wu
Hi, we can convert an XML document text string to an XML dom via StingReader/InputStream but can we convert an XML dom to an XML document text string via StringWriter/OutputStream? I tried to figure this out but not sure where to start. Really any suggestion or idea! Richard Wu

RE: soap and xerces jars

2001-07-24 Thread Richard Wu
did you look into crimson? -Original Message- From: Alfred [mailto:[EMAIL PROTECTED]] Sent: July 24, 2001 12:49 PM To: [EMAIL PROTECTED] Subject: RE: soap and xerces jars Hi Matt, Thanks for the tip. Do you or anyone else know where I can find smaller JAXP compliant parsers. Thanks

RE: XMLParser throws out NullPointerException with a normal InputSour ce

2001-07-23 Thread Richard Wu
My own code caused the problem. Sorry for the spam. Now I have a lot of faith in xerces parser now. BTW: anyone knows when xerces-j-2 is available for a big time? -Original Message- From: Richard Wu [mailto:[EMAIL PROTECTED]] Sent: July 23, 2001 2:55 PM To: '[EMAIL PROTECTED]

XMLParser throws out NullPointerException with a normal InputSource

2001-07-23 Thread Richard Wu
://xml.org/sax/features/namespaces",true ); saxParser.setFeature( "http://apache.org/xml/features/validation/schema",true ); saxParser.parse(inputSource); Thanks! Richard Wu