473,320 Members | 2,071 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

id() Function

Dear All,

Save me....I am about to give up.....

I have spent the last two days trying to get id() funcion to work with .NET
XPath classes. Any pointers information on how this works and what the
requirements are wil be helpful. I am using VB .NET.

Thanks in advance. And I will owe you one...who ever answers this !

Cheers
Nov 11 '05 #1
7 1710
Rohit Sharma wrote:
Save me....I am about to give up.....

I have spent the last two days trying to get id() funcion to work with .NET
XPath classes. Any pointers information on how this works and what the
requirements are wil be helpful. I am using VB .NET.


id() function requires DTD definition. It must be defined in DTD that an
attribute is ID typed.
It's also possible to make it work with Schema, see "id() function and XML
Schema" at my blog - http://www.tkachenko.com/blog/archives/000060.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #2
Thanks !!.

I had seen it just before you answered the mail. Any VB equivalent code ?? !
I am trying my luck here...but just in case.

Cheers
Rohit

"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:Oz**************@TK2MSFTNGP09.phx.gbl...
Rohit Sharma wrote:
Save me....I am about to give up.....

I have spent the last two days trying to get id() funcion to work with ..NET XPath classes. Any pointers information on how this works and what the
requirements are wil be helpful. I am using VB .NET.


id() function requires DTD definition. It must be defined in DTD that an
attribute is ID typed.
It's also possible to make it work with Schema, see "id() function and XML
Schema" at my blog - http://www.tkachenko.com/blog/archives/000060.html
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #3
Rohit Sharma wrote:
I had seen it just before you answered the mail. Any VB equivalent code ?? !
I am trying my luck here...but just in case.


Sorry, I don't know VB.
So you are trying to use id() function with schema, right? I'm just curious if
it's really useful combination.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #4
Thanks again.

Yes. I am using id() function with schema. It is quite a complex schema and
what I would ideally like to use is the id() function with a IDREF parameter
(as string with spaces between ids). I dont know if this will work. I am
using your code example combining VB with the CS class.

Thanks again
Rohit
"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:u1**************@TK2MSFTNGP10.phx.gbl...
Rohit Sharma wrote:
I had seen it just before you answered the mail. Any VB equivalent code ?? ! I am trying my luck here...but just in case.
Sorry, I don't know VB.
So you are trying to use id() function with schema, right? I'm just

curious if it's really useful combination.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #5
Rohit Sharma wrote:
Yes. I am using id() function with schema. It is quite a complex schema and
what I would ideally like to use is the id() function with a IDREF parameter
(as string with spaces between ids). I dont know if this will work.

Should work.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #6
Hi again,

Where can i get the schema of the example file ?

Cheers
Rohit

"Oleg Tkachenko" <oleg@NO_SPAM_PLEASEtkachenko.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
Rohit Sharma wrote:
Yes. I am using id() function with schema. It is quite a complex schema and what I would ideally like to use is the id() function with a IDREF parameter (as string with spaces between ids). I dont know if this will work.

Should work.
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #7
Rohit Sharma wrote:
Where can i get the schema of the example file ?


<?xml version="1.0" encoding="UTF-8"?>
<!--W3C Schema generated by XMLSPY v5 rel. 2 U (http://www.xmlspy.com)-->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xs:element name="file">
<xs:complexType>
<xs:attribute name="id" type="xs:ID" use="required"/>
<xs:attribute name="title" type="xs:string"/>
<xs:attribute name="size" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:element name="notification">
<xs:complexType>
<xs:attribute name="id" type="xs:ID" use="required"/>
<xs:attribute name="title" type="xs:date" default="2003-12-01"/>
</xs:complexType>
</xs:element>
<xs:element name="root">
<xs:complexType>
<xs:sequence>
<xs:element ref="file" maxOccurs="unbounded"/>
<xs:element ref="notification"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Nov 11 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: Suzanne Vogel | last post by:
Hi, I've been trying to write a function to test whether one class is derived from another class. I am given only id's of the two classes. Therefore, direct use of template methods is not an...
4
by: deko | last post by:
I use named anchors to take users to specific parts of a long page. But I want to add some processing and do some things with my nav bar when users go to certain sections delineated by named...
10
by: JJA | last post by:
I'm trying to use document.getElementByID inside a function where the ID is passed as an argument. I get the same error ("Element has no properties") on the same statement inside the commonCheck...
12
by: Russell E. Owen | last post by:
I have several situations in my code where I want a unique identifier for a method of some object (I think this is called a bound method). I want this id to be both unique to that method and also...
7
by: Microsoft News | last post by:
Hi all. Does id() xpath function work in System.XML? I have built dtd, schema, xdr for a simple xml which includes attributes definded as ID and IDREFS. Validation is occurring properly for all...
1
by: Pauljh | last post by:
Hi All, I have a web page which builds a hidden table, as (based on certain criteria) people can have multiple version of this table, not a problem. But I need each table to have a unique id...
3
by: khurramhameed7 | last post by:
Hi, I am new here i need help in my script, all the things are working fine the only problem is that when user click on <div class="addButton"><a...
1
by: msg2ajay | last post by:
hello , i have to pass a 'span' id to the javascript function'. how can i pass that. when i tried like below it is working!!! may the function is in the same page.... eg: ---- ...
1
by: LuisDavid | last post by:
Hola grupo tengo un codigo que como resultado me da un valor ejemplo (p0, p1,......), que al visualizarlo por ejemplo parte del codigo es: <script ....> function valores(){ ..... codigo........
2
by: torso | last post by:
Hi. I have a list. List should be indexed with id number, but how i can do it? Should I get list id's to array and use sort or is there better solutions for that? <ul id='List'> <li...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.