Re: changing attribute of Node

2001-10-12 Thread Shashank
Casting org.w3c.Node(s) to Element is giving ClassCastException If I try printing Class of this Node (which I try casting to type Element) it prints class Type is org.apache.xerces.dom.DeferredAttrNSImpl java.lang.ClassCastException: org.apache.xerces.dom.DeferredAttrNSImpl

Re: changing attribute of Node

2001-10-12 Thread Shashank
Casting org.w3c.Node(s) to Element is giving ClassCastException If I try printing Class of this Node (which I try casting to type Element) it prints class Type is org.apache.xerces.dom.DeferredAttrNSImpl java.lang.ClassCastException: org.apache.xerces.dom.DeferredAttrNSImpl

Fw: Serializing Namespaces

2001-10-12 Thread Scott Moore
I posted this yesterday, but didn't get any responses. It's getting rather urgent, so I'm resending it hoping someone can help me. I've looked throughout the Xerces source code and can't find any flag or setting that will allow all namespace declarations and prefixes to get written out to the Pri

Re: changing attribute of Node

2001-10-12 Thread TLSteinmetz
((Element)node).setAttribute( "attribute", "value" ); Shashank

Re: changing attribute of Node

2001-10-12 Thread Rahul Srivastava
The attributes of an element node are again org.w3c.Node(s). So, you can use the same set of APIs to modify the attribute as for elements. :-) Cheers, Rahul. > From: Shashank <[EMAIL PROTECTED]> > > Hi ! > > I am using xerces parser for parsing XML file and reading and changing > Node value.

changing attribute of Node

2001-10-12 Thread Shashank
Hi ! I am using xerces parser for parsing XML file and reading and changing Node value. but how to change the attribute of this Node. I didn't find correct API. I can read the value of Node's attribute, but then how to change this value. take care, Shashank -- ---

Re: Error in Validating when element contains asingle space as a valid value

2001-10-12 Thread Vlad . Epshtein
Hello Abhishek, Did you try using instead of space? Regards, Vlad Please respond to xerces-j-user <[EMAIL PROTECTED]> To:        xerces-j-user <[EMAIL PROTECTED]> cc:         Subject:        Error in Validating when element contains asingle space as a valid         value Hi, I am using

Re: Error in Validating when element contains asingle space as a valid value

2001-10-12 Thread Andreas Thönnessen
abhishekhp schrieb: : > The element as in the XML file is > > It is imperitive that a single space is a valid value for this element. > Can anyone suggest a solution to the problem? : Hi abhishekhp (?), I think your problem is not in the schema definition. XML normally does not treat spaces (an

Re: xinlcude support

2001-10-12 Thread Andy Clark
Marek Fukala wrote: > I had tried to find out if the xerces supports Xinclude but have not > been able to find any informations about. So is the Xinclude implemented > in Xerces (or Xalan???). As soon as you implement it, it will be. ;) No, we don't currently have support for XInclude in the par

Error in Validating when element contains asingle space as a valid value

2001-10-12 Thread abhishekhp
Hi, I am using xerces 1.4.3 DOM parser to validate and parse elements against Schemas. In my Schema definition, I have defined an element as follows : // A single space