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: jdgarrett at alltel dot net
- Date: Mon, 17 Sep 2001 12:36:57 -0500
- Reply-To: xsl-list at lists dot mulberrytech dot com
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="<4" >Joe & Bill's
Shop</Customer>
I need to return to a Visual Basic variable the value of NumberOfPurchases
in the form
<4
rather in the parsed value form
<4
The .text property returns <4
and the .xml property returns
NumberOfPurchases="<4"
As Chris pointed out in a previous post...there is
not a property or method in the MSXML parser that
will output only <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@lists.mulberrytech.com
|[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Michael Kay
|Sent: Monday, September 17, 2001 8:22 AM
|To: xsl-list@lists.mulberrytech.com
|Subject: RE: [xsl] How do you get the non-transformed character entity
|out of MSXML3.0
|
|
|> until transformation it indeed has the value of <
|> otherwise it would not load into the parser
|> nor would the parser correctly transform it....
|
|No, the attribute is written as "<" 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