You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-cvs@xml.apache.org by xm...@xml.apache.org on 2004/06/11 21:36:49 UTC

[Apache XMLBeans Wiki] Updated: XmlBeansV1Faq

   Date: 2004-06-11T12:36:49
   Editor: 63.120.159.29 <>
   Wiki: Apache XMLBeans Wiki
   Page: XmlBeansV1Faq
   URL: http://wiki.apache.org/xmlbeans/XmlBeansV1Faq

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -23,6 +23,7 @@
    * [#configPackageName Can I change the default package names for the java classes generated from my schema?]
    * [#deepEquals Is there a way to do a ''deep equals'' between two Xmlobjects?]
    * [#suggestedPrefixes How can I influence the namespace prefix used when saving/printing out my XML?]
+   * [#selectPath Is selectPath(...) on XmlObject and XmlCursor working?]
    * [#execQuery Is execQuery(...) on XmlObject and XmlCursor working?]
     
  * '''[#somQuestions Schema Object Model Questions] '''
@@ -87,7 +88,7 @@
 [[Anchor(viewJavaDoc)]]
 '''Is the XMLBeans V1 javadoc available online?'''
 
-Yes, you can view the XMLBeans V1 JavaDoc here, http://xml.apache.org/xmlbeans/docs/reference/index.html.
+Yes, you can view the XMLBeans V1 !JavaDoc here, http://xml.apache.org/xmlbeans/docs/reference/index.html.
 ----
 [[Anchor(scompFindingJavac)]]
 '''The scomp program can't find javac and fails with java.io.IOException on Windows!'''
@@ -139,7 +140,7 @@
 
   '''Built in Types'''
 
-  Just as with types in XML schema, the XMLBeans types based on schema are arranged in a hierarchy. In general, the hierarchy of XMLBean types mirrors the hierarchy of the schema types themselves. XML schema types all inherit from xs:anyType (which is at the root of the hierarchy); XMLBeans types inherit from XmlObject ... [XMLBeans Support for Built-In Schema Types http://xml.apache.org/xmlbeans/docs/guide/conXMLBeansSupportBuiltInSchemaTypes.html]
+  Just as with types in XML schema, the XMLBeans types based on schema are arranged in a hierarchy. In general, the hierarchy of XMLBean types mirrors the hierarchy of the schema types themselves. XML schema types all inherit from xs:anyType (which is at the root of the hierarchy); XMLBeans types inherit from !XmlObject ... [XMLBeans Support for Built-In Schema Types http://xml.apache.org/xmlbeans/docs/guide/conXMLBeansSupportBuiltInSchemaTypes.html]
 
 ----
 [[Anchor(configPackageName)]]
@@ -173,7 +174,7 @@
 
 ----
 [[Anchor(deepEquals)]]
-'''Is there a way to do a ''deep equals'' between two XmlObjects?'''
+'''Is there a way to do a ''deep equals'' between two !XmlObjects?'''
 
 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
 
@@ -183,7 +184,7 @@
 [[Anchor(suggestedPrefixes)]] 
 '''How can I influence the namespace prefix used when saving/printing out my XML?'''
 
-XMLBeans V1 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.  
+XMLBeans V1 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.  
 
 Here is a code example from this helpful post, http://nagoya.apache.org/eyebrowse/ReadMsg?listName=xmlbeans-user@xml.apache.org&msgNo=33 :
 {{{
@@ -196,10 +197,16 @@
 }}}
 
 ----
+[[Anchor(selectPath)]]
+'''Is selectPath(...) on !XmlObject and !XmlCursor working?'''
+
+!XmlBeans has a built in engine for very simple XPath expressions. For more advanced XPath expressions Jaxen engine can be used if xbean_xpath.jar is on the classpath. xbean_xpath.jar is available in build\private\lib by running 'ant xbean_xpath.jar'.
+
+----
 [[Anchor(execQuery)]]
-'''Is execQuery(...) on XmlObject and XmlCursor working?'''
+'''Is execQuery(...) on !XmlObject and !XmlCursor working?'''
 
-At the moment XmlBeans doesn't have an XQuery engine, Dutta Satadip is researching open source XQuery alternatives that the Apache XmlBeans api could interface with. If you know of a good open source XQuery engine alternative please contact Dutta ( s-dutta at sbcglobal.net ). However the XmlBeans included in BEA's Weblogic 8.x executes xqueries using a BEA's proprietary XQuery engine.
+At the moment !XmlBeans doesn't have an XQuery engine, Dutta Satadip is researching open source XQuery alternatives that the Apache !XmlBeans api could interface with. If you know of a good open source XQuery engine alternative please contact Dutta ( s-dutta at sbcglobal.net ). However the !XmlBeans included in BEA's Weblogic 8.x executes xqueries using a BEA's proprietary XQuery engine.
 
 ----
 [[Anchor(somQuestions)]]
@@ -218,7 +225,7 @@
 
    1. Put the JAR on your classpath
 
-   1. Use {{{com.bea.xml.XmlBeans.getContextTypeLoader()}}} to get the SchemaTypeLoader corresponding to your thread's context classloader.
+   1. Use {{{com.bea.xml.XmlBeans.getContextTypeLoader()}}} to get the !SchemaTypeLoader corresponding to your thread's context classloader.
 
    1. you can then use {{{schemaTypeLoader.findType(QNameForType)}}}
 
@@ -231,9 +238,9 @@
 === XmlCursor API ===
 ----
 [[Anchor(navigatingXmlCursor)]]
-'''Is there documentation on navigating with XmlCursor?'''
+'''Is there documentation on navigating with !XmlCursor?'''
 
-This document, http://xml.apache.org/xmlbeans/docs/guide/conNavigatingXMLwithCursors.html, discusses using XmlCursor to navigate a document.
+This document, http://xml.apache.org/xmlbeans/docs/guide/conNavigatingXMLwithCursors.html, discusses using !XmlCursor to navigate a document.
 
 ----
 [[Anchor(usingBookmarks)]]

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