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

[Namespace] Could I enclose different namespaces ?

Hello everybody

Could I enclose different namespace.
My concern is :
On one hand, I have this stuff
<tr:transaction xmlns:tr="http://myhome.sweethome.org/transaction"
attr1="blabla" attr2 ="blabla">
<tr:item num="1">
<tr:identification>
<blabla/>
</tr:identification>
<tr:content>
<blablablabla/>
</tr:content>
</tr:item>
<tr:item num="2">
....
</tr:transaction>

On other hand I have
<b:batchRequest xmlns:b="http://myhome.sweethome.org/batchrequest"
attrBatch1="blabla" attrBtch2="blabla">

<b:addRequest dn="uid=john.doo,dc=home,dc=sweethome,dc=org">
<b:attr name="objectclass">
<b:value>top</b:value>
<b:value>person</b:value>
</b:attr>
<b:attr name="cn">
<b:value>john</b:value>
</b:attr>
<b:attr name="sn">
<b:value>doo</b:value>
</b:attr>
<b:attr name="uid">
<b:value>john.doo</b:value>
</b:attr>
</b:addRequest>
<b:addRequest dn="uid=john.doo2,dc=home,dc=sweethome,dc=org">
<...>
</b:addRequest>
</b:batchRequest>
I want to put my batchRequest document into the transaction document,
so I can extract one aspect or other from one document.

It's authorized to do this :

<tr:transaction xmlns:tr="http://myhome.sweethome.org/transaction"
xmlns:b="http://myhome.sweethome.org/batchrequest"
attr1="blabla" attr2 ="blabla">
<b:batchRequest attrBatch1="blabla" attrBtch2="blabla">
<tr:item num="1">
<tr:identification>
<blabla/>
</tr:identification>
<tr:content>
<b:addRequest dn="uid=john.doo,dc=home,dc=sweethome,dc=org">
<b:attr name="objectclass">
<b:value>top</b:value>
<b:value>person</b:value>
</b:attr>
<b:attr name="cn">
<b:value>john</b:value>
</b:attr>
<b:attr name="sn">
<b:value>doo</b:value>
</b:attr>
<b:attr name="uid">
<b:value>john.doo</b:value>
</b:attr>
</b:addRequest>
</tr:content>
</tr:item>
<tr:item num="2">
<b:addRequest dn="uid=john.doo2,dc=home,dc=sweethome,dc=org">
<...>
</b:addRequest>
</tr:item>
</b:batchRequest>
</tr:transaction>

Sum up :

<NS_1:a>
<NS_2:aa>
<NS_1:b>
<NS_1:c>
<NS_2:bb/>
</NS_1:c>
</NS_1:b>
</NS_2:aa>
</NS_1:a>

Thank !

8:0) Cram TeXeD
--
"On ne peut pas ne pas communiquer"
axiome n°1 de Paul Watzlawick
<http://texed75.free.fr>
Jul 20 '05 #1
0 1228

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

Similar topics

88
by: Tim Tyler | last post by:
PHP puts most of its functions into a big flat global namespace. That leads to short function names - but creates a namespace minefield for programmers. Lots of the functions are legacies from...
1
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
25
by: kj | last post by:
Consider the following XML document: <?xml version='1.0' encoding='UTF-8'?> <bar:foo xmlns:bar='someuri'> <baz/> </bar:foo> What namespace does baz belong to? What is this namespace bound...
7
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
4
by: Programatix | last post by:
Hi, Normally, I would use Namespace for all the window forms I created. With VS 2005, the code generated by the designer is hidden using partial keyword. The question is, is there an efficient...
4
by: Kevin Newman | last post by:
The primary problem I've had with php is the lack of namespaces, which makes OOP very difficult to organize, since you end up with large number of classes cluttering up the same namespace - which...
8
by: Simon Brooke | last post by:
I was debugging a new XML generator tonight and trying to determine why it wasn't working; and realised my dom printer does not output XML namespace declarations. My method to output an Element...
13
by: toton | last post by:
Hi, I have some enum (enumeration ) defined in some namespace, not inside class. How to use the enum constant's in some other namespace without using the whole namespace. To say in little...
3
by: huohaodian | last post by:
I have a webservice class MyService.asmx.cs with: namespace XMLWS { public class Poster : System.Web.Services.WebService
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...
0
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...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...
0
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...

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.