You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by Apache Wiki <wi...@apache.org> on 2011/08/16 21:09:38 UTC

[Xmlbeans Wiki] Update of "XmlBeansFaq" by greggggg

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Xmlbeans Wiki" for change notification.

The "XmlBeansFaq" page has been changed by greggggg:
http://wiki.apache.org/xmlbeans/XmlBeansFaq?action=diff&rev1=188&rev2=189

  </xb:namespace>
  }}}
  to specify package names
+ [[http://www.sanfranciscodentistdds.com/|dentists san francisco]] 
+ 
  
  /!\ Note: XMLBeans doesn’t support using two or more sets of java classes (in different packages) mapped to schema types/elements that have the same names and target namespaces, using all in the same class loader. Depending on the direction you are using for the java classes to schema types mapping, some features might not work correctly [[http://nofaxpayday-loans.com/|no fax payday loans]]. This is because even though the package names for the java classes are different, the schema location for the schema metadata (.xsb files) is the same and contains the corresponding implementing java class, so the JVM will always pick up the first on the classpath. This can be avoided if multiple class loaders are used.
  
@@ -259, +261 @@

  Dmitri.Colebatch posted some code that will do a ''deep equals''.  You can find the code attached to this post http://nagoya.apache.org/eyebrowse/ReadMsg?listName=xmlbeans-user@xml.apache.org&msgNo=75
  
  Kevin Krouse also posted some code that will do a ''deep equals'' but had some limitations addressed by Dmitri above.  You can find the code attached to this post http://nagoya.apache.org/eyebrowse/ReadMsg?listName=xmlbeans-user@xml.apache.org&msgNo=69.
- 
+ [[http://www.sanfrancisco-weddingphotographers.com/|wedding photographers san francisco]]
  ----
  <<Anchor(suggestedPrefixes)>> 
  '''How can I influence the namespace prefix used when saving/printing out my XML?'''
+ [[http://www.spa-sanfrancisco.com/|spas san francisco]]  
  
  XMLBeans does not keep the prefixes when the original XML is loaded into the underlying XML store.  If you need/want a specific prefix to be associated with a namespace you can use the {{{setSaveSuggestedPrefixes(...)}}} !XmlOption.  
  
@@ -275, +278 @@

  
  String output = document.xmlText(opts);
  }}}
+ [[http://www.thesanjoseplumbers.com/|plumber san jose]]  
+   
  
  ----
  <<Anchor(xsiSchemaLocation)>>
@@ -316, +321 @@

  '''How do I control CDATA?'''
  
  Use CDATA options. Learn more here - CdataOptions.
- 
+ [[http://www.yoursanjoselocksmiths.com/|locksmith san jose]]
  ----
  <<Anchor(somQuestions)>>
  === Schema Object Model Questions ===
@@ -353, +358 @@

  '''What is the difference between !SchemaProperty and !SchemaParticle?'''
  
  In a few words, the difference is that !SchemaProperty represents a "flattened", simplified view of the contents of a type, while !SchemaParticle represents a "complete" view including all of the model groups, as defined in Schema. To exemplify, consider the following Schema:
- 
+ [[http://www.usedcars-sacramentoca.com/|used cars sacramento]]  
  {{{<xs:complexType name="T">
    <xs:sequence>
      <xs:element name="a" type="xs:string"/>

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org