Peter,
Here are some snippets of the code...
try
{
//DOMParser parser = new DOMParser();
DocumentBuilder parser =
DocumentBuilderFactory.newInstance().newDocumentBuilder();
template = parser.
Elena,
Yes, it turned out to be a firewall problem. Once I set up the code to go
through the proxy, everything started to work. I assumed it had to be
something that I was overlooking (because obviously this is a pretty basic
function for any XML parser), but it took me a while to think of it.
Th
Esteban,
no, it is not a correct behaviour for the dom api since the creation of a
dom tree is
good for manipulting the document programmatically. If you add, delete or
change nodes
and afterwards serialize the document, the serialized document should
reflect any changes.
What functions do you ca
HI!
I´m not really sure if this is the place to post this question... but i´m
having a little problem here and I need some help
I have a voucher.xml file wich is a ´template´ to create new xml voucher
representations.
I´m using Xerces, latest version, downloaded a week ago.
When i do
doc = p
Steven,
Steven Gollery wrote:
> When I try to read a file that is on my local machine and has a PUBLIC
> DTD, I get a java.net.socket exception when I use the file path (eg,
> D:\whatever.xml) or an unknown host exception when I use file://D/
> whatever.xml.
> The DTD declaration looks like this:
Check this link http://xml.apache.org/xerces-j/features.html
Basically, you need to set the features.
If you use JDom, the following code helps:
public void validate(InputSource in, String schemaLocation, String
strNamespace)
throws SAXException, IOException
{
SAXParser reader = new
Hi
i have attached a .java file which will validate the given XML file
aganist the XSD mentioned in the XML file.
i hope this will help u
regards
Vijay
-Original Message-
From: tom john [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 12, 2002 2:43 PM
To: [EMAIL PROTECTED]
Subject: xml v
Hi,
I am very new with xerces and schema.
Can anyone give me a simple example how to validate
xml using schema? or where to look for it.
i get xml data which needs to be validated.
thanks
tom
__
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's grea
"Isaac S." wrote:
> ... so in some cases, we won't be able to use the newest Xalan and the
> newset Xerces both in the same project?
If Xalan continues to rely on Xerces-only API for performance
reasons *and* those interfaces change, then you *might* have
problems using the latest Xerces with a ve