I'm trying to execute selectsinglenod e(string_var) where where string_var
contains the value ".//NetIncome(YTD)_ Member/Series[@type='data']". The
opening and closing parentheses are literals (not defining a function or
serving a grouping purpose). I get an error:
msxml3.dll: Unknown method.
.//-->NetIncome(YT D<--)_Member/Series[@type='data']
How do I get selectsinglenod e to treat the parentheses as literals? I've
tried a variety of escape sequences to no avail.
Many thanks!
--
Bob Hodgman 4 2031
as xml does not support ()'s and several other characters in a node
name, there is no quoting for it. there are also additional restrictions
on the first char of a node name.
-- bruce (sqlwork.com)
Bob H. wrote:
I'm trying to execute selectsinglenod e(string_var) where where string_var
contains the value ".//NetIncome(YTD)_ Member/Series[@type='data']". The
opening and closing parentheses are literals (not defining a function or
serving a grouping purpose). I get an error:
msxml3.dll: Unknown method.
.//-->NetIncome(YT D<--)_Member/Series[@type='data']
How do I get selectsinglenod e to treat the parentheses as literals? I've
tried a variety of escape sequences to no avail.
Many thanks!
Thanks for the quick reply, Bruce!
Do you know where I can find a complete list of charcters that cannot be in
a node name?
--
Bob Hodgman
"bruce barker" wrote:
as xml does not support ()'s and several other characters in a node
name, there is no quoting for it. there are also additional restrictions
on the first char of a node name.
-- bruce (sqlwork.com)
Bob H. wrote:
I'm trying to execute selectsinglenod e(string_var) where where string_var
contains the value ".//NetIncome(YTD)_ Member/Series[@type='data']". The
opening and closing parentheses are literals (not defining a function or
serving a grouping purpose). I get an error:
msxml3.dll: Unknown method.
.//-->NetIncome(YT D<--)_Member/Series[@type='data']
How do I get selectsinglenod e to treat the parentheses as literals? I've
tried a variety of escape sequences to no avail.
Many thanks!
from: http://www.w3.org/TR/2006/REC-xml-20060816/#NT-Nmtoken
[Definition: A Name is a token beginning with a letter or one of a few
punctuation characters, and continuing with letters, digits, hyphens,
underscores, colons, or full stops, together known as name characters.]
Names beginning with the string "xml", or with any string which would
match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization
in this or future versions of this specification.
note: a ":" is allowed, but its a separator between the namespace and
the node name.
-- bruce (sqlwork.com)
Bob H. wrote:
Thanks for the quick reply, Bruce!
Do you know where I can find a complete list of charcters that cannot be in
a node name?
Great! Thanks, Bruce!
--
Bob Hodgman
"bruce barker" wrote:
from: http://www.w3.org/TR/2006/REC-xml-20060816/#NT-Nmtoken
[Definition: A Name is a token beginning with a letter or one of a few
punctuation characters, and continuing with letters, digits, hyphens,
underscores, colons, or full stops, together known as name characters.]
Names beginning with the string "xml", or with any string which would
match (('X'|'x') ('M'|'m') ('L'|'l')), are reserved for standardization
in this or future versions of this specification.
note: a ":" is allowed, but its a separator between the namespace and
the node name.
-- bruce (sqlwork.com)
Bob H. wrote:
Thanks for the quick reply, Bruce!
Do you know where I can find a complete list of charcters that cannot be in
a node name?
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: John R. |
last post by:
I have an application written in C# and i am using MS XML
DOM!
I have a document with the following structure (only the
<DicEntry> - Elements are important):
<NewDataSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-
instance">
|
by: John A Grandy |
last post by:
Is there something special in XML about the name "Parameter" ... I am not
able to XPATH query for nodes named "Parameter"
<Root>
<Category CategoryID="1">
<Elements>
<Element ElementID="1"></Element>
<Element ElementID="2"></Element>
<Element ElementID="3"></Element>
</Elements>
|
by: Jonathan G. |
last post by:
I'm writing my first windows service. I have a class called
'mainprocess' whose constructor is called by the service class.
Within mainprocess, I declare an instance of another class I wrote,
called DBHandler, which does all of my Sql Database work.
I have LogEvents everywhere and notice that the thread never gets
inside the DBHandler constructor. Instead, it throws this error as a
new instance of the DBHandler class is declared:...
|
by: Mikkky |
last post by:
The sample code below returns and error " The type or namspace name 'Server'
could not be found". Please help.
using System;using System.IO; using System.Xml;using System.Diagnostics;
using System.Collections;using System.Web;using System.Web.UI;
using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;
public class Business
{
XmlDocument doc = new XmlDocument();
doc.Load(Server.MapPath("Rules.xml"));
|
by: KathyB |
last post by:
Hi,
Using the following in an asp.net procedure. I get the error "The
expression passed to this method should result in a NodeSet".
Dim xDoc As New Document()
The line causing the error is:
Dim n as XmlNode = xDoc.SelectSingleNode("//Station="Station1"]/WI/]/@order")
| |
by: Shapper |
last post by:
Hello,
I am accessing a value in a XML value:
news.Load(Server.MapPath("xml/ news.rss"))
newslabel.Text = CType(news.SelectSingleNode("rss version="2.0
"/channel/title").InnerText, String)
The XML file:
<?xml version="1.0"?>
|
by: Chris Hayes |
last post by:
I'm trying to create a nifty Windows Service that will perform tasks at a
predetermined interval.
To make sure I understand the timing correctly I have set an emailer utility
to email me on the start and stop of the service...this works fine. However,
I am trying to test the "ticking" of the timer control and have an emailer
in the sub that handles the timer tick, unfortunately it does not appear to
be ticking...
Can anyone tell me...
|
by: olympus_mons |
last post by:
Hi all,
my XML looks like:
<root xmlns="tempuri.org">
<result xmlns="">
<date>2006-09-14</date>
<status>ok</status>
</result>
</root>
|
by: xzzy |
last post by:
None of the following properly do the VB.net double quote conversion because
all of the following in csharp convert to
\" instead of just a double quote: "
I have tried:
char myDoubleQuote = (char)34;
string myDoubleQuote = "" + (char)34;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |