[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How do you get the non-transformed character entit

Subject: RE: How do you get the non-transformed character entity out of MSXML3.0
From: jdgarrett@xxxxxxxxxx
Date: Mon, 17 Sep 2001 12:36:57 -0500
lt entit
Mr Kay

Yes I may be confused on that one issue but
the issue still remains ...as discussed in previous
posts on this subject...that I have not
yet been able to load the xml structure into
the DOM via Visual Basic and then have it
spit back out the character entity in it's pre-parsed
value ....

e.g.
given the following node

<Customer  number="125487"   NumberOfPurchases="&lt;4" >Joe &amp; Bill's
Shop</Customer>

I need to return to a Visual Basic variable the value of NumberOfPurchases

in the form

&lt;4

rather in the parsed value form

<4


The .text property returns  <4

and the .xml property returns

NumberOfPurchases="&lt;4"



As Chris pointed out in a previous post...there is
not a property or method in the MSXML parser that
will output only   &lt;4


Thanks
Jim

FYI:The following is from Chris Bayes on Sun 16-Sep-2001 3:35 AM

Jim,
You can't get it except from the .xml property. So you need something
like
var b = xml.selectSingleNode("/Customer/@NumberOfPurchases").xml;
var z = b.substring(b.indexOf("=\"")+2, b.lastIndexOf("\""));
Or rather the vb equivalent
Dim b:b = xml.selectSingleNode("/Customer/@NumberOfPurchases").xml
Dim z:z = Mid(b, InStr(1, b, "=""")+2, InStrRev(b, """")-(InStr(1, b,
"=""")+2))

Ciao Chris


|-----Original Message-----
|From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx
|[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Michael Kay
|Sent: Monday, September 17, 2001 8:22 AM
|To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
|Subject: RE:  How do you get the non-transformed character entity
|out of MSXML3.0
|
|
|> until transformation it indeed has the value of &lt;
|> otherwise it would not load into the parser
|> nor would the parser correctly transform it....
|
|No, the attribute is written as "&lt;" in the source file but as soon as it
|is parsed (i.e., as soon as it is recognized as an attribute) it has the
|value "<".
|
|Parsers do not do transformation, I think you are confusing the XML parser
|with the XSLT processor. Understanding the distinction is
|absolutely crucial
|here.
|
|Mike Kay
|
|
| XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
|
|



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.