You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by za...@kanisa.com on 2001/03/30 22:07:16 UTC

Using both xalan and xerces

Does it make sense to use both xalan and xerces APIs in one
application? Or is Xalan a kind of superset of Xerces?

Specifically I'd like to know if I'm working with DOM_Node
and DOM_Document objects from Xerces, can I easily
operate on them using Xalan APIs, e.g. use an XPath
method to select some nodes from the DOM_Document,
then have Xerces APIs operate on the selected nodes
from the original DOM_Document object?

Thanks,
Zartaj

accentuated characters in CDATA section

Posted by Herve Mathonet <ma...@simbad.u-strasbg.fr>.
I've an XML file with a lot oh CDATA section. In these sections, there
are a lot of accentuated characters because of the language I use is
French.

When I build the tree with the DOMParser, there is no problems but when
i get the text contained in CDATA section, and when i display it whith
the XMLFormatter, all the special Frenc characters are replace with
others.

Is there special parameters for XMLFormatter class to keep the right
characters ?

Thanks
Herve Mathonet



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


accentuated characters in CDATA section

Posted by Herve Mathonet <ma...@simbad.u-strasbg.fr>.
I've an XML file with a lot oh CDATA section. In these sections, there
are a lot of accentuated characters because of the language I use is
French.

When I build the tree with the DOMParser, there is no problems but when
i get the text contained in CDATA section, and when i display it whith
the XMLFormatter, all the special Frenc characters are replace with
others.

Is there special parameters for XMLFormatter class to keep the right
characters ?

Thanks
Herve Mathonet



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


Re: Using both xalan and xerces

Posted by Charlie Hart <ch...@nc.rr.com>.
With my limited experience I will say yes it does and yes you can.
However, if you make any change to the xerces dom (adding or deleting
nodes), you need to create a new XalanDocument with the update Dom in
order for the xalan doc to correctly reflect the xerces dom. Simply do
      XalanDoc = theParserLiaison->createDocument(theUpdatedDOMDoc)
charlie.

zartaj.majeed@kanisa.com wrote:

> Does it make sense to use both xalan and xerces APIs in one
> application? Or is Xalan a kind of superset of Xerces?
>
> Specifically I'd like to know if I'm working with DOM_Node
> and DOM_Document objects from Xerces, can I easily
> operate on them using Xalan APIs, e.g. use an XPath
> method to select some nodes from the DOM_Document,
> then have Xerces APIs operate on the selected nodes
> from the original DOM_Document object?
>
> Thanks,
> Zartaj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


RE: Using both xalan and xerces

Posted by Ken Crismon <ke...@riolabs.com>.
Presently in our application we use XALAN with XERCES a lot.  All of our
configuration for our application is serialized to disk as an XML set of XML
documents.  We use XALAN to navigate the documents and XERCES up front to
capture the disk file into a DOM.

In our situation it works perfectly!!

Ken
Riolabs, Inc

-----Original Message-----
From: zartaj.majeed@kanisa.com [mailto:zartaj.majeed@kanisa.com]
Sent: Friday, March 30, 2001 1:07 PM
To: xalan-dev@xml.apache.org; xerces-c-dev@xml.apache.org
Subject: Using both xalan and xerces


Does it make sense to use both xalan and xerces APIs in one
application? Or is Xalan a kind of superset of Xerces?

Specifically I'd like to know if I'm working with DOM_Node
and DOM_Document objects from Xerces, can I easily
operate on them using Xalan APIs, e.g. use an XPath
method to select some nodes from the DOM_Document,
then have Xerces APIs operate on the selected nodes
from the original DOM_Document object?

Thanks,
Zartaj

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org


RE: Using both xalan and xerces

Posted by Ken Crismon <ke...@riolabs.com>.
Presently in our application we use XALAN with XERCES a lot.  All of our
configuration for our application is serialized to disk as an XML set of XML
documents.  We use XALAN to navigate the documents and XERCES up front to
capture the disk file into a DOM.

In our situation it works perfectly!!

Ken
Riolabs, Inc

-----Original Message-----
From: zartaj.majeed@kanisa.com [mailto:zartaj.majeed@kanisa.com]
Sent: Friday, March 30, 2001 1:07 PM
To: xalan-dev@xml.apache.org; xerces-c-dev@xml.apache.org
Subject: Using both xalan and xerces


Does it make sense to use both xalan and xerces APIs in one
application? Or is Xalan a kind of superset of Xerces?

Specifically I'd like to know if I'm working with DOM_Node
and DOM_Document objects from Xerces, can I easily
operate on them using Xalan APIs, e.g. use an XPath
method to select some nodes from the DOM_Document,
then have Xerces APIs operate on the selected nodes
from the original DOM_Document object?

Thanks,
Zartaj

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org