473,387 Members | 1,304 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,387 software developers and data experts.

how do you insert an element into an xml document with namespace

perfix?

<bac:BACnetDevice APDUTimeout='' ApplicationSoftwareVersion=''
FirmwareRevision='' InstanceNumber='3744' MaxAPDULengthAccepted=''
ModelName='' NumberOfAPDURetries='' ProtocolConformanceClass=''
ProtocolObjectTypesSupported='' ProtocolServicesSupported=''
ProtocolVersion='' SegmentationSupported='' VendorIdentifier='' VendorName=''
xmlns:bac='http://www.teletrol.com/BACnet'>
<bac:BACnetPoints>
<bac:baseAnalogInput EventState='0' InstanceNumber='3745'
ObjectName='Test_AI' ObjectType='0' OutOfService='0' PresentValue=''
StatusFlags='0' Units='95'>
<Description />
<BackwardReferences />
<GeneralProperties Attr='0' InstanceNumber='3745' IsConfigured='0'
ObjectName='Test_AI' ObjectType='0' SchemaVer='1.4' TraceOptions=''>
<Description />
</GeneralProperties>
<bac:ObjectIdentifier InstanceNumber='3745' ObjectType='0' />
</bac:baseAnalogInput>
<bac:baseAnalogOutput EventState='0' InstanceNumber='3746'
ObjectName='Test_AO' ObjectType='1' OutOfService='0' PresentValue=''
PriorityArray='' RelinquishDefault='' StatusFlags='0' Units='95'>
<Description />
<BackwardReferences />
<GeneralProperties Attr='0' InstanceNumber='3746' IsConfigured='0'
ObjectName='Test_AO' ObjectType='1' SchemaVer='1.4' TraceOptions=''>
<Description />
</GeneralProperties>
<bac:ObjectIdentifier InstanceNumber='3746' ObjectType='1' />
</bac:baseAnalogOutput>
</bac:BACnetPoints>
<GeneralProperties Attr='1' InstanceNumber='3744' IsConfigured='0'
ObjectName='Building_1' ObjectType='8' SchemaVer='1.4' TraceOptions='0'>
<Description />
</GeneralProperties>
<bac:ObjectIdentifier InstanceNumber='3744' ObjectType='8' />
</bac:BACnetDevice>

i need to insert another <bac:baseAnalogOutput></bac:baseAnalogOutput>
element into this xml document between <bac:BACnetPointsand
</bac:BACnetPointsi know how to do it with regular xml element but how does
it work with namespace perfix? i use VB.net with .Net DOM. any example is
much appericated.

thank you
Jul 18 '06 #1
0 809

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

Similar topics

0
by: Tor Hovland | last post by:
I'm trying to transform the document element of incoming xml files, however, I'm having trouble with namespace references not appearing correctly. Here's an example input file: <?xml...
4
by: Gordon Dickens | last post by:
I have target xml to generate from schema. All of the XML instances have the same global element i.e. <base>. I would like to combine all of the schemas into a single schema where I could...
5
by: Adam Barr | last post by:
I have a tag foo that I want to copy unchanged when it is a subtag of bar, so I have a template (x is the namespace for the document): <xsl:template match="x:bar/x:foo"> <xsl:copy>...
4
by: Hollywood | last post by:
I'm using XML serialization to produce the following XML document: <TestDoc xmlns:srd="some-url"> <Additional> <Security> <srd:Login>login_id</srd:Login> <srd:Password>password</srd:Password>...
4
by: Krishna Tulasi via .NET 247 | last post by:
Hi, I am having trouble with creation of XML programmatically using .NET. Specifically Im trying to create an element which looks like below and insert into an existing xml doc: <Worksheet...
4
by: BizTalk Benjamin | last post by:
Hi, I have an XmlDocument loaded from a memory stream. I set the document element prefix in this way XmlElement e = xDoc.DocumentElement; e.Prefix = "abc" When i simply write the document...
2
by: mirandacascade | last post by:
O/S: Win2K Vsn of Python: 2.4 Example: <a> <b createAnotherWhenCondition="x"> <c>text for c</c> <d>text for d</d> </b>
16
by: TT (Tom Tempelaere) | last post by:
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument...
5
by: Andy Chambers | last post by:
Hi, On both Opera and Firefox, getElementsByTagName doesn't find anything apart from <optionelements inside a select element. Why is this? Here's a page that demonstrates this behaviour. I'd...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
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...
0
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
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...
0
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,...
0
jinu1996
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...

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.