Ask a Question related to ASP.NET General, Design and Development.
-
PJ #1
Re: How to query and edit nodes in an xml doc /dataset?
use xpath [url]http://www.w3.org/TR/xpath[/url]
xpath staments will be your queries into your xml instance.
XmlDocument doc = new XmlDocument(xmlInstance);
String xpath = "/station/@label";
if ( doc.SelectSingleNode(xpath).Value == myVar )
{
//do something or check something
}
~PJ
"KathyB" <KathyBurke40@attbi.com> wrote in message
news:75e8d381.0306241332.7247225@posting.google.co m...> Hi, I'm working with an xml structure that is NOT database
> centric...it does not fit the column/rows model.
>
> I need to be able to load an xml doc file into memory, then query that
> info and update/add nodes as needed. For example:
>
> <station name="label">
> <work_instructions order="1" title="Apply Labels">
> <boards>
> <board serial_no="111">
> <board serial_no="222">
> </boards>
> </work_instructions>
> </station>
>
> I need to be able to say: if station @name = varStation (variable)
> then
> do something, or check something, etc.
>
> Could someone please point me to some examples? I'm only finding
> database-structured xml used as examples and it isn't helping me!
>
> Thanks.
>
> Kathy
PJ Guest
-
Query and edit .gif, puzzled
How can you query and edit images in coldfusion like this website http://springtimeexpo.com/exhibitor_floor_map.cfm. I get the javascript I am just... -
Check for missing xml nodes or empty nodes
Hi, Is it possible to check for missing or empty xml nodes "before" putting them into a table or doing a XMLSearch . Sometimes the xml will come... -
dataset.Databind error when dataset XML contains attributes...
I've come accross an interesting problem populating an asp.net datagrid. I am trying to bind XML data to a datagrid as I've done in countless other... -
Ccopying a datatable content from an untyped dataset into a table which is inside a typed dataset
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data... -
Can some help me with the syntax, ADo.net C# dataset query
hi every body i need help i have a dataset called ds, which contains a table called login_table, which contains three columns, namely (login,...



Reply With Quote

