473,804 Members | 3,509 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

getting around SOM limitations

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|re ading 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
Nov 12 '05 #1
3 1117
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|re ading 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

Nov 12 '05 #2
You can add all such attributes to the UnhandledAttrib utes property on the
XmlSchema object. Read more @
http://msdn.microsoft.com/library/de...butestopic.asp

hope this helps,
Zafar

"Rein Petersen" <rm********@hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.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|re ading 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

Nov 12 '05 #3
Zafar! You rock! Thanks for responding :) Rein
Zafar Abbas [MSFT] wrote:
You can add all such attributes to the UnhandledAttrib utes property on the
XmlSchema object. Read more @
http://msdn.microsoft.com/library/de...butestopic.asp

hope this helps,
Zafar

"Rein Petersen" <rm********@hot mail.com> wrote in message
news:%2******** *******@TK2MSFT NGP12.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


Nov 12 '05 #4

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

Similar topics

3
12414
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.
11
3102
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 C++ or C in the case of systems development. Perl is useful, but only for dynamic web content or simple sysadmin scripts. Most slashdotters think the same! Some are comparing Graham to Eric S. Raymond for his snobery. LISP's era ended when...
303
17804
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. Yahoo store was originally written in Lisp. c. Emacs The issues with these will probably come up, so I might as well mention them myself (which will also make this a more balanced
13
3043
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 produce a decent version of MS SQL Server, one without a plethora of flaws and limitations? Personally I'd sack the MS SQL Server Chief Architect, start addressing some fundementals and do what MS do best - copy the best functionality of their...
2
2171
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 a result-file to work with too. Here is an example (xerces only get a collapsed string through), any suggestions or current bug-reports are welcome. / Patrik
4
1976
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 me to help him out. My idea is this: Use the CNN Top Stories RSS feed to harvest keywords, then use a random keyword from this harvest to search Google, get links from the result, look through random links here and get links to images, then load...
5
11561
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);
3
1971
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 classes of machines ? In other words, the same calculation on 1 machine would have a different result than another machine would have .. Thanks ! Jack
3
1572
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 As New TableCell()
0
1120
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
0
9708
marktang
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...
0
10085
tracyyun
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...
0
9161
agi2029
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...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5527
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...
1
4302
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
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.