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
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
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
((Element)node).setAttribute( "attribute", "value" );
Shashank
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.
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
--
---
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
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
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
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
10 matches
Mail list logo