Re: Namespaces

2014-07-16 Thread Friessen, Michelle
en, Michelle [mailto:michelle.fries...@pearson.com] > *Sent:* Tuesday, July 15, 2014 4:38 PM > *To:* user@xmlbeans.apache.org > *Subject:* Namespaces > > > > We have 3 namespaces that need to be added when generating XML: > > > > xmlns="http://www.

RE: Namespaces

2014-07-16 Thread Gagnon, Joseph - 0558 - MITLL
apache.org Subject: Namespaces We have 3 namespaces that need to be added when generating XML: xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://ww

Namespaces

2014-07-15 Thread Friessen, Michelle
We have 3 namespaces that need to be added when generating XML: xmlns="http://www.imsglobal.org/xsd/imsqti_v2p1"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://www.imsglobal.org/xsd/imsqti_v2p1 http://www.imsglobal.org/question/qtiv2

RE: Handling namespaces in xsd

2014-01-28 Thread Cezar Andrei
-- > From: Cezar Andrei [mailto:cezar.and...@oracle.com] > Sent: Monday, January 27, 2014 9:14 PM > To: user@xmlbeans.apache.org > Subject: Re: Handling namespaces in xsd > > Narayan, > > It seems correct to me. Each namespace is defined by a separate schema file. > And the

RE: Handling namespaces in xsd

2014-01-27 Thread Parvatikar, Narayan
namespaces in xsd Narayan, It seems correct to me. Each namespace is defined by a separate schema file. And there is a definition in the last schema for abc element: Cezar Here are the generated schema files: http://www.w3schools.com/furniture"; xmlns="http://www.w3.org/2001/XMLSchema

Re: Handling namespaces in xsd

2014-01-27 Thread Cezar Andrei
--- http://www.w3.org/2001/XMLSchema";> http://www.w3schools.com/furniture"/> http://www.w3.org/TR/html4/"/> Cezar On Mon, 2014-01-27 at 04:36 -0800, Parvatikar, Narayan wrote: > Hi > > > > I am trying to convert a xml sampl

Handling namespaces in xsd

2014-01-27 Thread Parvatikar, Narayan
Hi I am trying to convert a xml sample which has multiple namespaces using xmlbeans inst2xsd java API. The generated xsd does not look correct? Source XML : http://www.w3.org/TR/html4/"; xmlns:f="http://www.w3schools.com/furniture"; xmlns:xsi="http://www.w3.org/200

Re: Scoped default namespaces

2012-06-10 Thread Kaan Yamanyar
document with the declarations* collected at the root. However I have asked if I could use the scoped namespaces as displayed in my example.* 2) There isn't a method named setSaveDefaultNamespace. If you mean setUseDefaultNamespace(); it uses the default namespace only for one element which is

Re: Scoped default namespaces

2012-06-08 Thread Jacob Danner
There are a couple other XMLOptions available like setSaveAggressive and setSaveDefault Namespace methods to render what you want. -jacobd On Jun 8, 2012 1:44 AM, "Kaan Yamanyar" wrote: > Hi, > > Is there a possible way to make use of default scoped name spaces? > I have not found any resources f

Scoped default namespaces

2012-06-08 Thread Kaan Yamanyar
Hi, Is there a possible way to make use of default scoped name spaces? I have not found any resources for this issue. instead of: http://test1.com/";> http://test2.com";> 1234567897 777666 I would like to have: http://test1.com/";> http://test2.com";> 1234567897 777666

Re: Removing namespaces at the element level

2010-08-10 Thread mARK aNDREWS
ence/index.html > > > > Cezar > > > -- > > *From:* mARK aNDREWS [mailto:mraandr...@gmail.com] > *Sent:* Wednesday, August 04, 2010 4:45 AM > *To:* user@xmlbeans.apache.org > *Subject:* Removing namespaces at the element level > > > > I have been using xmlB

RE: Removing namespaces at the element level

2010-08-06 Thread Cezar Andrei
@xmlbeans.apache.org Subject: Removing namespaces at the element level I have been using xmlBeans for a while, and it really has made my life very easy, but have come a ccross a problem when looking at performance tuning and wondered if anyone new the answer, or can help. The documents I am passing are

Removing namespaces at the element level

2010-08-04 Thread mARK aNDREWS
I have been using xmlBeans for a while, and it really has made my life very easy, but have come a ccross a problem when looking at performance tuning and wondered if anyone new the answer, or can help. The documents I am passing are very large and I am looking at ways to redice the size of what is

RE: XMLBeans does not correctly propagate namespaces

2010-08-02 Thread Geir.Ovsttun
specific namespace in xml documents based on the XML Schemas of the organization a solid foundation for non-interoperability is created. In principle the practice moves the semantic content of the namespace from the namespace to the prefix i.e. a misuse the namespace concept altogether. Namespaces c

RE: XMLBeans does not correctly propagate namespaces

2010-07-10 Thread Paul Gillen
: XMLBeans does not correctly propagate namespaces Please be aware that while at the XML/namespace technology level prefixes are technically arbitrary, from a higher business perspective several standards organizations have standardized them associate with specific name space names for consistency

RE: XMLBeans does not correctly propagate namespaces

2010-07-09 Thread Scott Hinkelman
does not correctly propagate namespaces None the less, if XMLBeans does not present a means by which to dictate the namespaces (which I'm almost positive it does through the Dom Nodes) then that is a shortcoming, if only small. From: Wing Yew Poon [mailto:wing.yew.p...@oracle.com]

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Duane Zamrok
None the less, if XMLBeans does not present a means by which to dictate the namespaces (which I'm almost positive it does through the Dom Nodes) then that is a shortcoming, if only small. From: Wing Yew Poon [mailto:wing.yew.p...@oracle.com] Sent: Thursday, July 08, 2010 5:51 PM To:

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Wing Yew Poon
Justin, as Peter has clearly explained, prefixes are arbitrary; they are not what is important; namespaces are what matters. It appears that some people are hung up over the prefixes that get used to represent the namespaces ("the correct namespace prefix"). If your (or your custom

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Justin Bailey
Follow-up... After some more searching, I found this thread which seems to describe exactly what the problem is: http://www.opensubscriber.com/message/user@xmlbeans.apache.org/1601039.html So it looks like this is a deficiency in XMLBeans, which is very disappointing. :( Anyway, I have resolve

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Justin Bailey
my "suggestion"? :( Justin From: Duane Zamrok To: "user@xmlbeans.apache.org" Sent: Thu, July 8, 2010 2:48:26 PM Subject: RE: XMLBeans does not correctly propagate namespaces One thing that I noticed when reading your schema example

RE: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Duane Zamrok
lking about and explain it a bit better. Best Regards -Duane From: Justin Bailey [mailto:justinbaile...@yahoo.com] Sent: Thursday, July 08, 2010 12:13 PM To: user@xmlbeans.apache.org Subject: Re: XMLBeans does not correctly propagate namespaces Thanks Peter and Geir for your responses. I apologize fo

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Justin Bailey
Thanks Peter and Geir for your responses. I apologize for the confusion; it looks like my email randomly omitted crucial lines of XML in my message. Here is the missing XSD header, with parentheses instead of angle brackets. (We're not using example.com; I just did a search & replace for our

Re: XMLBeans does not correctly propagate namespaces

2010-07-08 Thread Peter Keller
; At this point, a printout of the XML structure displays the following:   Statistical Somehow, XMLBeans thinks "midas" is the plural of "mida" and has helpfully dropped the S since I only have one of them.  But that's not what I want!  Our suite of programs depends on

RE: XMLBeans does not correctly propagate namespaces

2010-07-07 Thread Geir.Ovsttun
Hi Justin, I am afraid that you maybe have missed a key aspect of using namespaces in xml It is perfectly legal for midas to be changed to mida as midas or mida is just a prefix (shorthand) for a namespace. What is important is that the prefix is associated with the same namespace. So

XMLBeans does not correctly propagate namespaces

2010-07-07 Thread Justin Bailey
MLBeans thinks "midas" is the plural of "mida" and has helpfully dropped the S since I only have one of them. But that's not what I want! Our suite of programs depends on the namespaces being propagated correctly, and "mida" clearly does not equal "midas

RE: Nested namespaces

2008-11-07 Thread Qureshi,Shahzad [Ontario]
list :) Shahzad Qureshi Systems Analyst/Programmer CIOB Environment Canada [EMAIL PROTECTED] From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 8:44 PM To: user@xmlbeans.apache.org Subject: RE: Nested namespaces

RE: Nested namespaces

2008-11-06 Thread Radu Preotiuc-Pietro
Have you tried that? Radu From: Qureshi,Shahzad [Ontario] [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 10:54 AM To: user@xmlbeans.apache.org Subject: Nested namespaces Hi All,

Nested namespaces

2008-11-06 Thread Qureshi,Shahzad [Ontario]
Hi All, I am very new to xmlbeans. I am using xmlbean 2.4.0. I am use xmlbean fairly well on simple xml files but now I've to deal with an xml with multiple namespaces. Here is an example http://www.opengis.net/om/1.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance&qu

RE: Confused on namespaces

2008-07-22 Thread Eric Murphy
and dynamically use their setters, I need to query my XML data store. I need to declare the native schema namespaces when querying for elements. Thanks Eric -Original Message- From: Radu Preotiuc-Pietro [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 22, 2008 2:39 PM To: user

Re: Confused on namespaces

2008-07-22 Thread Radu Preotiuc-Pietro
c Murphy wrote: > Is there any way to query a schema element to find out its declaring > namespace? Also how do you set your namespace declarations when > creating a new XmlDocument? While the declarations are in the schema > they don’t seem to be available through any of the XmlBeans ob

Confused on namespaces

2008-07-20 Thread Eric Murphy
et my namespaces by getting them out of the schema rather than hard coding them into the code. Eric Murphy

Why dropping namespaces when soap encoding is used?

2008-03-20 Thread Jun Qian
Hi, Can someone please explain why when soap encoding is used, the instance document generated by XmlBeans' SampleXmlUtil drops all the namespaces, even if the schema says elementFormDefault="qualified"? >From SampleXmlUtil.java: if (_soapEnc)

Re: map namespaces and ignore schemaLocation

2008-01-10 Thread Jacob Danner
rsor(); xc... // navigate to NS declaration // change NS declaration to the one you want // cast to the type you want Hope this helps, -jacobd On Jan 8, 2008 4:59 AM, Jan Torben Heuer <[EMAIL PROTECTED]> wrote: > Hi, > > can I map namespaces to another string and ignore the s

Re: map namespaces and ignore schemaLocation

2008-01-08 Thread Azfar Kazmi
Sure, you can, using xsdconfig file. See http://dev2dev.bea.com/pub/a/2004/11/Configuring_XMLBeans.html Azfar On Jan 8, 2008 4:59 AM, Jan Torben Heuer <[EMAIL PROTECTED]> wrote: > Hi, > > can I map namespaces to another string and ignore the schemaLocation? >

map namespaces and ignore schemaLocation

2008-01-08 Thread Jan Torben Heuer
Hi, can I map namespaces to another string and ignore the schemaLocation? I have: http://www.opengis.net/swe/1.0.1"; schemaLocation="http://schemas.opengis.net/sweCommon/1.0.1/swe.xsd"/> and I want to have: http://www.opengis.net/swe/1.0.0"; schemaLocation="http://s

Help with selecting XML with nested namespaces

2007-12-12 Thread Donald Brady
Hi I am trying to select a value from the xml that is spat out by the JHOVE project (http://hul.harvard.edu/jhove/). The xsd describing the xml results a jhove command is http://hul.harvard.edu/ois/xml/ns/jhove. The xsd has another nested namespace http://www.loc.gov/mix/ and I am trying

Re: just a version change in namespaces causes so much difficulties?

2007-11-30 Thread Jacob Danner
nd at least make things a little simpler from a java code perspective. Otherwise you may wanna try using the XmlOptions or cursor API to manipulate the instance with all the namespaces you need. Anyone else have any suggestions? -jacobd On 11/30/07, Johannes Echterhoff <[EMAIL PROTECTED]> wro

just a version change in namespaces causes so much difficulties?

2007-11-30 Thread Johannes Echterhoff
service A uses. The namespace for schema that service B uses is http://www.opengis.net/0.0. The elements that we would like to copy differ only by the namespace. Whenever I want to just set elements retrieved from service B in an xml instance of service A, a conflict of namespaces occurs. Is

Re: Missing namespaces and XML header

2007-11-16 Thread Jacob Danner
ces%28%29> *() Causes the saver to reduce the number of namespace prefix declarations. Take a peek at the other methods that help when working with namespaces http://xmlbeans.apache.org/docs/2.2.0/reference/org/apache/xmlbeans/XmlOptions.html -jacobd On Nov 16, 2007 11:11 AM, Regis Santos <[

RES: Missing namespaces and XML header

2007-11-16 Thread Regis Santos
16 de novembro de 2007 15:43 Para: [EMAIL PROTECTED];user@xmlbeans.apache.org Assunto: Re: Missing namespaces and XML header Is there a way to save xml file without the prefixes "nfe:" from the tags? yep, look into the methods on the XmlOptions Api I've used setSaveAggres

Re: Missing namespaces and XML header

2007-11-16 Thread Jacob Danner
! =c) > > Thanks for help > > Regis > > > -Mensagem original- > *De:* Jacob Danner [mailto:[EMAIL PROTECTED] > *Enviada em:* sexta-feira, 16 de novembro de 2007 15:06 > *Para:* user@xmlbeans.apache.org;[EMAIL PROTECTED] > *Assunto:* Re: Missing namespaces an

Re: Missing namespaces and XML header

2007-11-16 Thread Jacob Danner
ant must be the following: > > > http://www.w3.org/2001/XMLSchema-instance"; > xmlns:xsd="http://www.w3.org/2001/XMLSchema"; > version="1.02" > xmlns:nfe="http://www.allianceconsultoria.com.br/nfe";> > 1.07 > > > In other wo

Missing namespaces and XML header

2007-11-16 Thread Regis Santos
e"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; version="1.02" xmlns:nfe="http://www.allianceconsultoria.com.br/nfe";> 1.07 In other words: What do I have to do to include the xmlns:xsi and xmlns:xsd namespac

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
eclarations. Depending on how you are building your document this should work. Hope this helps, -Jacob Danner On 8/20/07, Ole Matzura <[EMAIL PROTECTED]> wrote: Hi! Is there any way to remove unused namespaces from an XmlObject when it is being saved? My situation is the follo

Re: remove unused namespaces?

2007-08-20 Thread Jacob Danner
> > > > > > On 8/20/07, Ole Matzura <[EMAIL PROTECTED]> wrote: > > > >> Hi! > >> > >> Is there any way to remove unused namespaces from an XmlObject when it > >> is being saved? My situation is the following: > >> > >>

Re: remove unused namespaces?

2007-08-20 Thread Ole Matzura
anner On 8/20/07, Ole Matzura <[EMAIL PROTECTED]> wrote: Hi! Is there any way to remove unused namespaces from an XmlObject when it is being saved? My situation is the following: 1) Parse a document with a large number of namespaces 2) Change the content of the document so that

Re: remove unused namespaces?

2007-08-20 Thread Jacob Danner
Matzura <[EMAIL PROTECTED]> wrote: > Hi! > > Is there any way to remove unused namespaces from an XmlObject when it > is being saved? My situation is the following: > > 1) Parse a document with a large number of namespaces > 2) Change the content of the document so that many

Xsi:type namespaces

2007-08-20 Thread McCann, Daniel B.
Hi! I'm writing an interface to Google KML files. I've been pretty successful using XMLBeans for several months now, but I can't seem to figure out why there is a difference in xsi:type namespaces if I am starting from an existing document vs. building it through Java. Is the

remove unused namespaces?

2007-08-20 Thread Ole Matzura
Hi! Is there any way to remove unused namespaces from an XmlObject when it is being saved? My situation is the following: 1) Parse a document with a large number of namespaces 2) Change the content of the document so that many of the namespaces are not used anymore 3) Save the document Now

Re: XMLBeans to generate big files? / Namespaces

2007-05-26 Thread Boudigué Alioum
Hi Edward Very good article. thx > -Ursprüngliche Nachricht- > Von: user@xmlbeans.apache.org > Gesendet: 25.05.07 18:11:37 > An: user@xmlbeans.apache.org > Betreff: Re: XMLBeans to generate big files? / Namespaces 1st question: i can't answer > > 2nd questi

Re: XMLBeans to generate big files? / Namespaces

2007-05-25 Thread Edward Blazer
1st question: i can't answer 2nd question: This really boils down to chunking the information into manageable sizes. I found this article a while ago and found it useful on a project with large XML and low computing resources. http://www.devx.com/xml/Article/34037 Good luck On 5/25/07, Boudigu

XMLBeans to generate big files? / Namespaces

2007-05-25 Thread Boudigué Alioum
Hi I just have 2 questions: I tried XML Beans the last two days and I generated the XML instances I needed: The problem is : the second prefix of my namespace is "sw4" but in the generated XML, i got "urn" instead of "sw4". I wasn't my intention ;-). Second question: can I use XMLBeans to gene

RE: how to retrieve namespaces defined in an XML file

2007-05-24 Thread Ajay Aggarwal
I tried that already. It didn't work. Result is an empty map. -Original Message- From: Jacob Danner [mailto:[EMAIL PROTECTED] Sent: Thursday, May 24, 2007 3:33 PM To: user@xmlbeans.apache.org Subject: Re: how to retrieve namespaces defined in an XML file Can't you do th

Re: how to retrieve namespaces defined in an XML file

2007-05-24 Thread Jacob Danner
asy (albeit ugly) answer for that one. Using the SAX parser as an example: Create a SAX parser. Parse your example file using a handler that extends DefaultHandler2. Override the method startPrefixMapping Collect the namespaces and prefixes into a NamespaceContext object in the overriden startPr

Re: how to retrieve namespaces defined in an XML file

2007-05-24 Thread Vijai Kalyan
I have a very easy (albeit ugly) answer for that one. Using the SAX parser as an example: 1. Create a SAX parser. 2. Parse your example file using a handler that extends DefaultHandler2. 3. Override the method startPrefixMapping Collect the namespaces and prefixes into a

how to retrieve namespaces defined in an XML file

2007-05-24 Thread Ajay Aggarwal
How can I retrieve all the namespaces (and prefixes) defined in an XML file? Thanks.

Re: Question on XMLNS Namespaces

2007-04-04 Thread soller
One other note: I wonder if this is somehow related to the qualification of the attributes. In the WSDL and referenced .xsd, they are unqualified. Jerome - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-ma

Re: Question on XMLNS Namespaces

2007-04-04 Thread soller
the client (only with regards to the xmlns="" / namespace issue). Do you see anything obvious with the XMLBeans Java code, my WSDL file, or the namespaces that I may not be setting properly? Any help or insight would be appreciated. My equivalent version generated the following on the we

Re: Question on XMLNS Namespaces

2007-03-30 Thread soller
ode that > dynamically constructs the XML payload/SOAP. We use Axis2, the XML Beans > tools, and WSDL2Java to generate the Java classes to construct the XML. > For this newsgroup, we created a simple example of an XML schema and WSDL > (only a simplified version of one operation) that repli

Question on XMLNS Namespaces

2007-03-30 Thread soller
, we created a simple example of an XML schema and WSDL (only a simplified version of one operation) that replicates the same problem, but much less complex. The namespaces in the payload corresponding to the standard need to be as if it was a standalone XML document. 1. SOAP Message The actual SOAP

Re: Two target namespaces for one schema

2007-03-28 Thread Matthieu Riou
nce); > > Please let us know if any of these solutions works for you. > > -jacob danner > > ---
sent from my nokia 9500 > > On 3/28/07, Matthieu Riou <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm having some difficulties to suppor

Re: Two target namespaces for one schema

2007-03-28 Thread Radu Preotiuc-Pietro
, Matthieu Riou <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I'm having some difficulties to support the reading of an XML instance > > document that could belong to two different target namespaces. I'm using > > XMLBeans to compile a schema and then read

Re: Two target namespaces for one schema

2007-03-28 Thread Jacob Danner
atthieu Riou <[EMAIL PROTECTED]> wrote: Hi, I'm having some difficulties to support the reading of an XML instance document that could belong to two different target namespaces. I'm using XMLBeans to compile a schema and then read and browse instances using the generated Java data structu

Two target namespaces for one schema

2007-03-28 Thread Matthieu Riou
Hi, I'm having some difficulties to support the reading of an XML instance document that could belong to two different target namespaces. I'm using XMLBeans to compile a schema and then read and browse instances using the generated Java data structures. Originally, my schema was

AW: Howto get tag value if tag contains namespaces?

2007-03-14 Thread Peter Neu
PROTECTED] > Gesendet: Mittwoch, 14. März 2007 17:03 > An: user@xmlbeans.apache.org > Betreff: Re: Howto get tag value if tag contains namespaces? > > Hi Peter, > I don't think namespaces would prevent you from doing this. > You should have something like BodenartDocument/Type an

Re: Howto get tag value if tag contains namespaces?

2007-03-14 Thread Jacob Danner
Hi Peter, I don't think namespaces would prevent you from doing this. You should have something like BodenartDocument/Type and from there I think there should be a pojo getStringValue() or similar kind of method based on the type. Is this not the case? -Jacobd On 3/14/07, Peter Neu &l

Howto get tag value if tag contains namespaces?

2007-03-14 Thread Peter Neu
Hello, I use xml-beans 2.2.0. I have trouble getting the value of tags which include additional namespaces. The xsd definition looks like this: The complex type looks like this: My sample sample xml is this: http://www.agroxml.de/content

Scoped default namespaces

2007-02-09 Thread Sherman, Dennis (END-CHI)
I need to supply a document in a form that uses scoped default namespaces, and I can't figure out how to get XMLBeans to create it. The consumer of the document defines what it looks like, and is quite determined that what they want works just fine with other partners. (My suspicion is

RE: solution to Saxon 8.1.1 dependency & saxon namespaces

2006-02-16 Thread Lawrence Jones
Hey all There have been various mentions on the mailing lists of not being able to use the newer version of Saxon. As of the checkin below (378309) Radu committed for me an update that changes XmlBeans' build process to download and use SaxonB-8.6.1 instead of SaxonB-8.1 (which is what we were usi

RE: solution to Saxon 8.1.1 dependency & saxon namespaces

2006-01-19 Thread Lawrence Jones
rom: Marius Gleeson [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 3:20 PM > To: dev@xmlbeans.apache.org; dev@xmlbeans.apache.org; > user@xmlbeans.apache.org > Subject: RE: solution to Saxon 8.1.1 dependency & saxon namespaces > > I am using all of this under jdk 1.4

RE: Saxon 8.1.1 dependency & saxon namespaces

2006-01-05 Thread Cezar Andrei
your patch will come handy. Cezar > -Original Message- > From: Marius Gleeson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 28, 2005 9:03 PM > To: dev@xmlbeans.apache.org; user@xmlbeans.apache.org > Subject: Saxon 8.1.1 dependency & saxon namespaces > > I a

RE: Multiple Namespaces in an XSD with XML Beans

2005-12-27 Thread Butterwood, Richard
t/Programmer | Infor | office: 770-418-2000 X 1167 | cell: 678-492-3080 | fax: 770-418-2022 | [EMAIL PROTECTED] From: Lawrence Jones [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 3:13 PM To: user@xmlbeans.apache.org Subject: RE: Multiple Namespaces in an XSD with XML Beans

Re: Multiple Namespaces in an XSD with XML Beans

2005-12-22 Thread Alistair Young
Richard, I used this sort of thing recently. The top level doc and all it's schema children had their own namespace: urn:oasis:names:tc:SAML:2.0:metadata with one specific child element having a different namespace: urn:guanxi:metadata I defined the urn:guanxi:metadata ns in it's own xsd and i

RE: Multiple Namespaces in an XSD with XML Beans

2005-12-21 Thread Lawrence Jones
lement and import the second schema. The second schema should define Response and all its children.   Cheers,   Lawrence   From: Butterwood, Richard [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 21, 2005 11:11 AM To: user@xmlbeans.apache.org Subject: Multiple Namespaces in an

Multiple Namespaces in an XSD with XML Beans

2005-12-21 Thread Butterwood, Richard
Merry Christmas!   I would like my XML instance file to look like this:      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"        ConsumerKey="1234"    Language="English"    DateTime="today"          SerialID="00

RE: Attributes and NameSpaces

2005-12-09 Thread Lawrence Jones
effect on perf.   Anyway – I raised the JIRA. We can follow it up there.   Cheers,   Lawrence   From: Radu Preotiuc-Pietro Sent: Friday, December 09, 2005 11:19 AM To: user@xmlbeans.apache.org Subject: RE: Attributes and NameSpaces   Well, XmlBeans doesn't really know whe

RE: Attributes and NameSpaces

2005-12-09 Thread Radu Preotiuc-Pietro
.orgSubject: Re: Attributes and NameSpaces Lawrence,   I ran into this exact problem when I started using xmlBeans and it was baffling and cost me hours of time before you sent a similiar explanation.   Isn't there some kind of creative check that xmlBeans could run to detect the p

RE: Attributes and NameSpaces

2005-12-09 Thread Butterwood, Richard
:[EMAIL PROTECTED] Sent: Friday, December 09, 2005 12:29 PM To: user@xmlbeans.apache.org Subject: RE: Attributes and NameSpaces   Hi Richard   I think you’re running into the infamous elementFormDefault=”qualified” | ”unqualified” issue.   If you don’t put an elementFormDefault attribute in

Re: Attributes and NameSpaces

2005-12-09 Thread Samuel B. Quiring
user?   -Sam - Original Message - From: Lawrence Jones To: user@xmlbeans.apache.org Sent: Friday, December 09, 2005 9:29 AM Subject: RE: Attributes and NameSpaces Hi Richard   I think you’re running into the infamous elementFormDefault=”qual

RE: Attributes and NameSpaces

2005-12-09 Thread Lawrence Jones
@xmlbeans.apache.org Subject: Attributes and NameSpaces   I can retrieve attributes using a XSD and XML without a name space, but with a namespace the following will not work.  I would appreciate any help.   XSD (ResponseBatch.xsd) xmlns="http://infor.com/ResponseBatch"    

Attributes and NameSpaces

2005-12-09 Thread Butterwood, Richard
I can retrieve attributes using a XSD and XML without a name space, but with a namespace the following will not work.  I would appreciate any help.   XSD (ResponseBatch.xsd) xmlns="http://infor.com/ResponseBatch" xmlns:xsd="http://www.w3.org/2001/XMLSchema">          

RE: Identical elements from different namespaces.

2005-12-07 Thread Christophe Bouhier (MC/ECM)
is to define the alternative namespace In the element declaration like this: http://www.itunes.com/dtds/podcast-1.0.dtd"/> Two equally named elements from different namespaces are now accessible through the same XmlObject. I am really curious to know if someone can point to a descripti

RE: Identical elements from different namespaces.

2005-12-07 Thread Radu Preotiuc-Pietro
parse anything twice, right? Radu > -Original Message- > From: Christophe Bouhier (MC/ECM) > [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 04, 2005 8:51 PM > To: 'user@xmlbeans.apache.org' > Subject: Identical elements from different namespaces. > >

Identical elements from different namespaces.

2005-12-04 Thread Christophe Bouhier (MC/ECM)
unes name space. I have tried to define both elements into a single xsd but the xmlbeans compiler complains about uniques of elements. Before I post my attempt, I would like to ask: Do I need to bother and try to define the two namespaces into one single schema?, or shall I use two schema

RE: getDomNode and namespaces

2005-08-04 Thread Yana Kadiyska
Hm, that’s odd – can you provide a short sample of what you’re doing – esp the xml and state before you call getDomNode ?   From: Ole Matzura [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 1:44 AM To: user@xmlbeans.apache.org Subject: getDomNode and namespaces

Re: getDomNode and namespaces

2005-08-04 Thread Eric Vasilik
The difference between getDomNode and newDomNode is that newDomNode creates a copy of the XML tree via the save process which synthesizes namespace declarations relevant to the needs of textually saving a document. The method getDomNode, on the other hand, does not make a copy of the XML tree. It

getDomNode and namespaces

2005-08-04 Thread Ole Matzura
Hi all!   I'm trying to take advantage of the new getDomNode method in xmlbeans 2 but am having namespace-related problems; the "old" newDomNode returned a node that had the relevant namespace declarations, the node returned by getDomNode does not contain these and I cant find any way of gettin

RE: suppress namespaces

2005-06-29 Thread Kiran Kumar
:18 PM To: user@xmlbeans.apache.org Subject: RE: suppress namespaces The document that XmlBeans prints out is an XML representation of the infoset, so you can only use XmlOptions.setSave*() to alter what this representation looks like, but in your case, you want to change the infoset itself, wh

RE: suppress namespaces

2005-06-29 Thread Radu Preotiuc-Pietro
Message-From: Kiran Kumar [mailto:[EMAIL PROTECTED]Sent: Wednesday, June 29, 2005 12:02 PMTo: user@xmlbeans.apache.orgSubject: RE: suppress namespaces Thanks Yana for your response. Closing Tag of coc:OBJECT_ID was there.. For better readability I aligned it ..  I will try with

RE: suppress namespaces

2005-06-29 Thread Kiran Kumar
Thanks Yana for your response. Closing Tag of coc:OBJECT_ID was there.. For better readability I aligned it .. I will try with cursor to modify the document.. I just tried to substitute the namespaces.. but it did not work.. Any idea why following code is not working ? XmlOptions opts

RE: suppress namespaces

2005-06-29 Thread Yana Kadiyska
prefixes/namespaces you can use the cursor to walk your document and modify it…I think that’s the best you can do…   --Yana   From: Kiran Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 29, 2005 6:30 AM To: user@xmlbeans.apache.org Subject: FW: suppress namespaces   Hello, If

FW: suppress namespaces

2005-06-29 Thread Kiran Kumar
Hello, If anybody has any idea on my question, please throw some light Appreciate your time and help..   Thanks Kiran From: Kiran Kumar [mailto:[EMAIL PROTECTED]Sent: Tue 6/28/2005 12:35 PMTo: user@xmlbeans.apache.orgSubject: suppress namespaces Hello, I am using XmlBeans to

suppress namespaces

2005-06-28 Thread Kiran Kumar
Hello, I am using XmlBeans to generate the XML response. It generates the following response.. But I want to suppress the namespaces in the response. If you observe closely there are 2 namespaces (/coindividual and other one /cocommon) .. If I use XmlOptions.setUseDefaultNamespace(), it is

AW: problem with namespaces

2005-06-01 Thread Weiler, Frank \(KBV\)
Hello ! Thanks for Your answer. I tried this with success. Regards, Frank > -Ursprüngliche Nachricht- > Von: Eric Vasilik [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. Juni 2005 20:04 > An: user@xmlbeans.apache.org > Betreff: Re: problem with namespaces > > &

Re: problem with namespaces

2005-06-01 Thread Eric Vasilik
You can try wrapping the xml with . The parser will remove the xml-fragment and namespace automatically. If you do not have control over the incoming XML, you can wrap the InputStream with your own to perform this. - Eric On 6/1/05, Weiler, Frank (KBV) <[EMAIL PROTECTED]> wrote: > Hello ! > >

problem with namespaces

2005-06-01 Thread Weiler, Frank \(KBV\)
Hello ! The following line parses a fragment of a xml-document: EhdHeaderTyp head = EhdHeaderTyp.Factory.parse(xml); I get the error: org.apache.xmlbeans.XmlException: error: Use of undefined namespace prefix: ehd here the xml-fragment to parse: What is the best way do