Hey, I love the SOM buuuuuut,
I'm trying to add/read my own namespaced attribute in a node of my
schema without having to jump back and forth from SOM to DOM. I think a
sample is important here because there will certainly be confusion about
what kind of attribute I'm talking about. Here is the schema that I wish
to create dynamically (with SOM):
<xs:schema xmlns:xs="..." xmlns:my="myNs">
<xs:element name="myElement" my:specialAtt="specialVal" type="xs:string"/>
</xs:schema>
Again, I don't want to add a SOM attribute, really it's a DOM attribute
(qualified name) my:specialAtt that I want to add|read as I am
constructing|reading my schema using SOM. You can imagine what a pain it
would be to have to compile and write to a memorystream everytime I want
to access the value stored in the schema element declaration with DOM,
not to mention trying to find the correspoding element that I was
referring to with the SOM ... there has got to be a better way. I don't
want to use annotations - namespacing my own attributes in the places i
need them just seems a million times more elegant to me (if I could get
at them through SOM)
Help...
Rein 3 1101
Try as I might, the SOM just won't allow me to markup a schema with
custom namespace attributes (I'm not referring to xs:attribute...).
I'm stuck with appinfo tags... ahhh the verbosity, the sheer waste of
bandwidth... what a crying shame.
Rein
Rein Petersen wrote: Hey, I love the SOM buuuuuut,
I'm trying to add/read my own namespaced attribute in a node of my schema without having to jump back and forth from SOM to DOM. I think a sample is important here because there will certainly be confusion about what kind of attribute I'm talking about. Here is the schema that I wish to create dynamically (with SOM):
<xs:schema xmlns:xs="..." xmlns:my="myNs"> <xs:element name="myElement" my:specialAtt="specialVal" type="xs:string"/> </xs:schema>
Again, I don't want to add a SOM attribute, really it's a DOM attribute (qualified name) my:specialAtt that I want to add|read as I am constructing|reading my schema using SOM. You can imagine what a pain it would be to have to compile and write to a memorystream everytime I want to access the value stored in the schema element declaration with DOM, not to mention trying to find the correspoding element that I was referring to with the SOM ... there has got to be a better way. I don't want to use annotations - namespacing my own attributes in the places i need them just seems a million times more elegant to me (if I could get at them through SOM)
Help...
Rein
You can add all such attributes to the UnhandledAttributes property on the
XmlSchema object. Read more @ http://msdn.microsoft.com/library/de...butestopic.asp
hope this helps,
Zafar
"Rein Petersen" <rm********@hotmail.com> wrote in message
news:%2***************@TK2MSFTNGP12.phx.gbl... Hey, I love the SOM buuuuuut,
I'm trying to add/read my own namespaced attribute in a node of my schema without having to jump back and forth from SOM to DOM. I think a sample is important here because there will certainly be confusion about what kind of attribute I'm talking about. Here is the schema that I wish to create dynamically (with SOM):
<xs:schema xmlns:xs="..." xmlns:my="myNs"> <xs:element name="myElement" my:specialAtt="specialVal"
type="xs:string"/> </xs:schema>
Again, I don't want to add a SOM attribute, really it's a DOM attribute (qualified name) my:specialAtt that I want to add|read as I am constructing|reading my schema using SOM. You can imagine what a pain it would be to have to compile and write to a memorystream everytime I want to access the value stored in the schema element declaration with DOM, not to mention trying to find the correspoding element that I was referring to with the SOM ... there has got to be a better way. I don't want to use annotations - namespacing my own attributes in the places i need them just seems a million times more elegant to me (if I could get at them through SOM)
Help...
Rein
Zafar! You rock! Thanks for responding :) Rein
Zafar Abbas [MSFT] wrote: You can add all such attributes to the UnhandledAttributes property on the XmlSchema object. Read more @ http://msdn.microsoft.com/library/de...butestopic.asp
hope this helps, Zafar
"Rein Petersen" <rm********@hotmail.com> wrote in message news:%2***************@TK2MSFTNGP12.phx.gbl...
Hey, I love the SOM buuuuuut,
I'm trying to add/read my own namespaced attribute in a node of my schema without having to jump back and forth from SOM to DOM. I think a sample is important here because there will certainly be confusion about what kind of attribute I'm talking about. Here is the schema that I wish to create dynamically (with SOM):
<xs:schema xmlns:xs="..." xmlns:my="myNs"> <xs:element name="myElement" my:specialAtt="specialVal"
type="xs:string"/>
</xs:schema>
Again, I don't want to add a SOM attribute, really it's a DOM attribute (qualified name) my:specialAtt that I want to add|read as I am constructing|reading my schema using SOM. You can imagine what a pain it would be to have to compile and write to a memorystream everytime I want to access the value stored in the schema element declaration with DOM, not to mention trying to find the correspoding element that I was referring to with the SOM ... there has got to be a better way. I don't want to use annotations - namespacing my own attributes in the places i need them just seems a million times more elegant to me (if I could get at them through SOM)
Help...
Rein This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Hajir Firooz |
last post by:
Hi, I am wondering what are the limitations of MS Access 2000 database in
terms of number of records per table. Any help will be appreciated.
|
by: Mike Cox |
last post by:
After writing an article trashing java, and C++, notable LISP guru
Paul Graham is getting roasted on slashdot. Apart from AutoCAD and
Emacs, what has LISP done anyway? Most real work is done in...
|
by: mike420 |
last post by:
In the context of LATEX, some Pythonista asked what the big
successes of Lisp were. I think there were at least three *big*
successes.
a. orbitz.com web site uses Lisp for algorithms, etc.
b....
|
by: Jeager |
last post by:
Why is it, Microsoft manage to write operating systems and office
applications with every bell and whistle facility known to man. Yet,
even after years and years of development they still cannot...
|
by: Patrik Carlsson |
last post by:
I have a problem using Xerces with a template for
a generic page-header getting a sub-tree as argument.
The same stylesheet is working flawlessly in IE and
Mozilla, though it would be nice to have...
|
by: DanielEKFA |
last post by:
Hey hey :)
Having a lot of problems with this. I'm helping my brother out with this art
school web page. He has a big wish to have random images from the web shown
in the background, and asked...
|
by: Dave Sisk |
last post by:
Hey folks:
I'm trying to do this:
CREATE TRIGGER datawhse.emp_ti
AFTER INSERT ON emp
REFERENCING NEW AS n
FOR EACH ROW MODE DB2ROW
BEGIN
DECLARE v_rrn DECIMAL(15,0);
|
by: Jack |
last post by:
Quick question, does anyone know what the limitations are, besides
memory for GMP, and also, if I write software that uses this library,
is it true that it may run differently on different hardware...
|
by: AMD Desktop |
last post by:
Hi,
I need to add a header to a datagrid.
This is the code I am trying to use:
Dim dgStaffingReport As New DataGrid
Dim dgitem As New DataGridItem(0, 0, ListItemType.Header)
Dim mycell...
|
by: Harald |
last post by:
Hi,
we have an ASP to receive soap messages as follows:
....
Set doc = Server.CreateObject("MSXML2.DOMDocument")
doc.load(Request)
if Len(doc.xml) = 0 then
ErrorMessage(...)
exit sub
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
by: aa123db |
last post by:
Variable and constants
Use var or let for variables and const fror constants.
Var foo ='bar';
Let foo ='bar';const baz ='bar';
Functions
function $name$ ($parameters$) {
}
...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: emmanuelkatto |
last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud.
Please let me know.
Thanks!
Emmanuel
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
| |