This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How do you get the non-transformed character entity out of MSXML3.0
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] How do you get the non-transformed character entity out of MSXML3.0
- From: "Julian Reschke" <julian dot reschke at gmx dot de>
- Date: Sun, 16 Sep 2001 12:04:29 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
Why would you want that?
In XML, "less-than" is serialized as "<".
When accessing the DOM, you get the "raw" character ("<").
Serializing the DOM again (using save() or the xml property) will turn it
back into "<".
I fail to see a problem here.
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> jdgarrett@alltel.net
> Sent: Sunday, September 16, 2001 12:37 AM
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] How do you get the non-transformed character entity out
> of MSXML3.0
>
>
>
>
> Here is the node
>
> <Customer number="125487" NumberOfPurchases="<4" >Joe & Bill's
> Shop</Customer>
>
> (I am just loading up an xml document via
> Visual Basic inside of a code module and then accessing
> the xml via manipulation of the DOM via Visual Basic, I am
> not transforming the xml with an xslt file...that
> would happen later and that is why the element and attribute
> values in the Customer node must stay in their untransformed state)
>
> What I am trying to retrieve from the node attribute
> NumberOfPurchases (using MSXML 3.0 ) is :
>
> <4
>
>
> What I have been able to get via one of the properties in
> MSXML3.0
>
> accessing the xml property on the node attribute you get
> NumberOfPurchases="<4"
>
> accessing the text property on the node attribute you get
> <4
>
> Anyone know how to return just <4 using one of the
> property's or methods of MSXML3.0
>
> Thanks
> Jim Garrett
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list