Retrieve element from an XML variable
I have a BPEL process that takes in a XML message and from that message I want to parse out one element.
Using BPEL v10.1.3.3.0
Here is the xsd's, (use a wrapper for adding the name space)
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
targetNamespace="TempNamespace"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
nxsd:version="DTD">
<include schemaLocation="VendorMasterBridge_2_1.xsd"/>
</schema>
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="VendorMasterBridge">
<xs:complexType>
<xs:sequence>
<xs:element name="VendorMaster" minOccurs="1" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="VendorNumber" minOccurs="1" type="xs:string"/>
<xs:element name="VendorName" minOccurs="0" type="xs:string"/>
<xs:element name="BatchCtrlNbr" minOccurs="0" type="xs:string"/>
<xs:element name="Error" minOccurs="0" type="xs:string"/>
<xs:element name="VendorMasterFields" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="DateCreated" minOccurs="0" type="xs:dateTime"/>
<xs:element name="Address1" minOccurs="0" type="xs:string"/>
<xs:element name="Address2" minOccurs="0" type="xs:string"/>
<xs:element name="PassReqdAutoCreate" minOccurs="0" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="id" use="optional" type="xs:string"/>
<xs:attribute name="version" use="optional" type="xs:string" default="2.1"/>
<xs:attribute name="timestamp" use="optional" type="xs:dateTime"/>
</xs:complexType>
</xs:element>
</xs:schema>
I use the Assign activity to try and get the Address1 field
<assign name="Assign_1">
<copy>
<from variable="Vendxml" part="VendorMasterBridge"
query="/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1"/>
<to variable="addr"/>
</copy>
</assign>
When I deploy and run the BPEL process I get this error
<selectionFailure xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/"><part name="summary"><summary>empty variable/expression result.
xpath variable/expression expression "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is empty at line 87, when attempting reading/copying it.
Please make sure the variable/expression result "/ns3:VendorMasterBridge/VendorMaster/VendorMasterFields/Address1" is not empty.
</summary>
</part></selectionFailure>
Here is the XML used for input
<invWriteVendor_Enqueue_InputVariable>
<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="VendorMasterBridge">
<VendorMasterBridge xmlns:ns0="TempNamespace" id="RMS">
<VendorMaster xmlns="">
<VendorNumber>1077952523</VendorNumber>
<VendorName>UNIFLEX</VendorName>
<VendorMasterFields>
<Address1>383 W COMBO AVE</Address1>
<Address2>PO BOX 9004</Address2>
<City>HICKSVILLE</City>
<StateCode>NY</StateCode>
<Zip>11801-9004</Zip>
<Country>USA</Country>
<TelephoneNumber>05169322400</TelephoneNumber>
<StatusCode>00</StatusCode>
</VendorMasterFields>
</VendorMaster>
</VendorMasterBridge>
</part></invWriteVendor_Enqueue_InputVariable>
Can someone help me know what I am doing wrong?
If I do an assign of the input xml to another xml of the same message type all the fields transfer. I only run into this issue if I am trying to access a specific element.
Thanks for any help on this,
Thanks for the reply, but could you be a little more specific? Problem with the namespace where, in the incoming message? Is it defined wrong in the BPEL process? A mis-match somewhere?
I kind of figured it was a namespace issue but I can not seem to track it down.
Similar Messages
-
How to retrieve elements from 3 different xml file in one url
Hi all,
Could anyone please let me how can we retrieve elements from 3 different xml file in one url?
i just can only do it with one file only, any help would very appreciate.
Thank in advance
JimHi Philip
Thanks for replying me.
I tried on that way, In my mdx query i am using one slice attribute (i.e [Customer].[Gender].allmembers) in rows so getting error "The Hierarchy already appears in Axis1".
SELECT
{[Measures].[Internet Sales Amount] } ON 0,
NON EMPTY
{[Customer].[Gender].allmembers } ON 1 -- Used
FROM
[Adventure Works]
WHERE
[Customer].[Gender].&[M]
,[Product].[Size Range].[(All)]
,[Customer].[Country].[All Customers]
[Customer].[Gender].[All Customers]
,[Product].[Size Range].&[XL]
,[Customer].[Country].[All Customers]
[Customer].[Gender].[All Customers]
,[Product].[Size Range].[(All)]
,[Customer].[Country].&[Australia]
Can you provide alternate ways to get resolved.
Thanks in advance -
How do I retrieve elements in a xml document ?
I would like to know how to retrieve elements from xml document ?
I have created a document already, but how do I proceed from there ?
Also, how do I access the values inside, the attributes and value ?
Thank you.parse the xml file in node wise using compare criteria according to programmer choice u can able to retrieve the elements which u want promptly
-
Assigning a node value from an XML variable to a String type in Weblogic Process Integrator
Hi,
Is there any way to assign a node value from an XML variable to a String variable
in Weblogic Process Integrator...
Thanx.
Narendra.Nerendra
Are you talking about using Xpath on the XML document and assigning to a
variable, it is unclear what you are asking
Tony
"Narendra" <[email protected]> wrote in message
news:3bba1215$[email protected]..
>
Hi,
Is there any way to assign a node value from an XML variable to a Stringvariable
in Weblogic Process Integrator...
Thanx.
Narendra. -
How to get the values of all elements and sub elements from following xml
how to get the values of all elements and sub elements from following xml...
<?xml version="1.0" encoding="UTF-8" ?>
<List_AML_Finacle xmlns="http://3i-infotech.com/Cust_AML_Finacle.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://3i-infotech.com/Cust_AML_Finacle.xsd List_AML_Finacle.xsd">
<TransactionID>TransactionID</TransactionID>
<Match>
<Src_Matched_Field>Src_Matched_Field</Src_Matched_Field>
<List_Matched_Field>
<FSFM_Matches>
<NUMBER>NUMBER</NUMBER>
<TERROR>TERROR</TERROR>
<TU>TU</TU>
<NAMEU>NAMEU</NAMEU>
<DESCRIPT>DESCRIPT</DESCRIPT>
<KODCR>KODCR</KODCR>
<KODCN>KODCN</KODCN>
<AMR>AMR</AMR>
<ADDRESS>ADDRESS</ADDRESS>
<SD>SD</SD>
<RG>RG</RG>
<ND>ND</ND>
<VD>VD</VD>
<GR>GR</GR>
<YR>YR</YR>
<MR>MR</MR>
<CB_DATE>CB_DATE</CB_DATE>
<CE_DATE>CE_DATE</CE_DATE>
<DIRECTOR>DIRECTOR</DIRECTOR>
<FOUNDER>FOUNDER</FOUNDER>
<TERRTYPE>TERRTYPE</TERRTYPE>
</FSFM_Matches>
<OfacMatchDetails>
<UID>UID</UID>
<TITLE>TITLE</TITLE>
<SDNTYPE>SDNTYPE</SDNTYPE>
<REMARKS>REMARKS</REMARKS>
<ID_UID>ID_UID</ID_UID>
<IDTYPE>IDTYPE</IDTYPE>
<IDNUMBER>IDNUMBER</IDNUMBER>
<IDCOUNTRY>IDCOUNTRY</IDCOUNTRY>
<ISSUEDATE>ISSUEDATE</ISSUEDATE>
<EXPIRATIONDATE>EXPIRATIONDATE</EXPIRATIONDATE>
<ADDRESS1>ADDRESS1</ADDRESS1>
<ADDRESS2>ADDRESS2</ADDRESS2>
<ADDRESS3>ADDRESS3</ADDRESS3>
<CITY>CITY</CITY>
<STATEORPROVINCE>STATEORPROVINCE</STATEORPROVINCE>
<POSTALCODE>POSTALCODE</POSTALCODE>
<COUNTRY>COUNTRY</COUNTRY>
</OfacMatchDetails>
</List_Matched_Field>
</Match>
</List_AML_Finacle>avoid multi post
http://forum.java.sun.com/thread.jspa?threadID=5249519 -
APIs for Retrieving properties from portalapp.xml
Hi all,
Can anyone tell me Is there any Java/Portal APIs for retrieving properties from portalapp.xml as well as from manifest.mf.
Help wud be highly appreciated.
Regards,
KarthickHi Karthick,
If you want to access the manifest file, you could do something like this:
import java.io.File;
import java.io.FileInputStream;
import java.util.jar.Manifest;
import com.sapportals.portal.prt.runtime.IPortalRuntimeResources;
import com.sapportals.portal.prt.runtime.PortalRuntime;
File privateResoucePath = PortalRuntime.getRuntimeResources().getLocation(IPortalRuntimeResources.LT_PRIVATE_RESOURCES);
File parPath = new File ( privateResoucePath, "HelloWorldProject" ); // name - par file name without the ".par" extension);
if ( parPath.exists()!=false ) {
try {
File manifestPath = new File ( parPath, "META-INF" );
FileInputStream fis = null;
fis = new FileInputStream(new File(manifestPath, "MANIFEST.MF"));
Manifest mf = new Manifest(fis);
java.util.jar.Attributes attr = mf.getMainAttributes();
if (attr!=null) {
return attr.getValue("Specification-Title");
else {return null;}
} catch (Exception e) {
e.printStackTrace();
return "ERROR"+e.toString();
META-INF is top level folder.
Hope this helps.
Daniel -
How to extract a set of XML elements from an XML element
My XML, stored in a variable called v_XML_input, is as follows:
<Root>
<PackageName>MY_PKG</PackageName>
<ProcedureName>SAVE_ADJ_VALUES</ProcedureName>
<Parameters>
<Parameter>
<Name>p_xml_string</Name>
<Value><DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>
</Value>
</Parameter>
</Parameters>
</Root>I want to extract only whatever is between <Value> and </Value>. In this case just this:
<DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>The actual values between the <Value> and </Value> may not always be these same elements; they may be strings, numerical values, or other XML values.
I've tried the following in a LOOP, and it works for other strings and numerical values, but I get a ORA-30625: method dispatch on NULL SELF argument is disallowed when trying to extract an XML value as a string.
v_sql_str := v_XML_input .extract('//Parameters/Parameter[position() = '||i||']/Value/text()') .getstringVal()||'''';Any help is appreciated...TIA!Not sure what you are actually trying to accomplish.
What's wrong with
SQL> SELECT xmlserialize(content XMLTYPE
('<Root>
<PackageName>MY_PKG</PackageName>
<ProcedureName>SAVE_ADJ_VALUES</ProcedureName>
<Parameters>
<Parameter>
<Name>p_xml_string</Name>
<Value><DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement>
</Value>
</Parameter>
</Parameters>
</Root>'
).extract('//Value/*') indent)xml
FROM DUAL
XML
<DocumentElement>
<tblAdjustments>
<EmpID>41439</EmpID>
<UserNTID>APPUSER</UserNTID>
<Comment>TEST RECORD</Comment>
<Amount>2000</Amount>
<RecordType>R</RecordType>
</tblAdjustments>
</DocumentElement> ?
Note: xmlserialize is not necessary and is there just for pretty printing the result. -
How to search for a particular element within a XML variable using studio?
All,
I am using studio 7.0 to develop a webbased application. In this, i need to access
an oracle db using a WLAI Application View from my Workflow. I get some data back
from Oracle as an XML variable and then apply an XPath statement to access the
individual columns returned.
My problem arises when there are no records in the db matching my criteria and
an empty XML variable is returned to me from the app view. In these cases my
XPath statement fails in studio causing an improper exit.
Does anybody know how to check for content in a XML varaible using studio? So
that if there is content i can proceed with XPath and if there is no content,
then i will take a different route.
Thanks in advance
Regards
SriIf I remember correctly, the adapter will return an XML document that contains
XML elements for each row. You can just simply check the count of these elements
with an XPath statement: ie. count(response/row)
"Sri " <[email protected]> wrote:
>
All,
I am using studio 7.0 to develop a webbased application. In this, i need
to access
an oracle db using a WLAI Application View from my Workflow. I get some
data back
from Oracle as an XML variable and then apply an XPath statement to access
the
individual columns returned.
My problem arises when there are no records in the db matching my criteria
and
an empty XML variable is returned to me from the app view. In these
cases my
XPath statement fails in studio causing an improper exit.
Does anybody know how to check for content in a XML varaible using studio?
So
that if there is content i can proceed with XPath and if there is no
content,
then i will take a different route.
Thanks in advance
Regards
Sri -
How to retrieve value from AIAInstallProperties.xml in AIA Flow.
After PIP Developement, Installer team will build the OUI installer for the PIP.They will build the screens for our PIP based on the requirements we give them.We give them a list of properties that we need the installer to prompt for and then the installer will store the values entered by the user in AIAInstallProperties.xml file.When the code is written, these properties are used instead of hardcoding any machine names, usernames, passwords, etc. When the services are deployed the properties are replaced with the values in AIAInstallProperties.xml.
How to retreive those values from AIAInstallProperties.xml file to your participating applications or any adapters in your code?
When the services are deployed how the properties are getting replaced with the values in AIAInstallProperties.xml.?
Can anyone explain the above two flow.
Thanks in advance.Hi
Prem Edwin's posting about AIAInstallProperties.xml is correct.
Two points, the 11gR1 is a foundation pack only release, that is why the OUI is only built to collect FP related information. In the future, when PIPs arrive, new wizard steps will involve to collect PIP specific information during installation/deployment time.
For your example of of getting a file location during installation, it would be effectively for your self-built PIPs. That is why the 11gR1 FP OUI would not support that.
Also, there are only finite number of tokens can be detokenized from AIAInstallProperties.xml to composite.xml, if you were introducing a random new 'file path', I don't believe it would be replaced automatically by default in R1 time.
Thanks! -
How to use xPath to extract a element from a xml stringin BPEL workflow?
I have a xml string passed into the BPEL workflow, and I need to extract the value of "serviceOrderGuid" (see the xml string below), how I can use BPEL mapper to do this? I am using NetBeans 6.0/M10.
Thanks
Kebin
<Parameters xmlns="http://www.sunmicrosoft.com/TrueOMF/WorkflowInformation.xsd">
<Parameter isIn="false" isOut="true" name="serviceOrderGuid">
<Value>5e8c9de9-f9b9-4815-bc06-e1572ff122f2</Value>
</Parameter>
<Parameter isIn="false" isOut="true" name="elementOfferGuid">
<Value>4f7c9de2-f9b9-4815-bc06-e1572ee122e2</Value>
</Parameter>
</Parameters>Thank you for your help so far, but I still have issues to be resolved.
I developed couple of workflows, in assign activity, I used query to retrieve some value from xml string, e.g.
<copy>
<from variable="OriginalEventMessage">
<query>/node()/*[ ( local-name() = 'Request' ) ]/*[ ( local-name() = 'Parameters' ) ]/*[ ( ( local-name() = 'Parameter' ) and ( @name = 'serviceOrderGuid' ) ) ]/*[ ( local-name() = 'Value' ) ]</query>
</from>
<to variable="CallMefIn" part="EventMessage">
<query>//*[local-name()='Request']/*[local-name()='Parameters']/*[local-name()='Parameter' and @name='serviceOrderGuid']/*[local-name()='Value']</query>
</to>
</copy>
at deployment, I got messages like "Starting BPELSE deploy process
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
What is the problem?
I attach the whole deployment log for your review.
Thanks
Kebin
Stopping service assembly MefWorkflowCompositeApp on target server.
Stopping suId : MefWorkflowCompositeApp-sun-http-binding
Stopped suId : MefWorkflowCompositeApp-sun-http-binding
Shutting down service assembly MefWorkflowCompositeApp on target server.
Shutdown : MefWorkflowCompositeApp-sun-http-binding
Shutdown : MefWorkflowCompositeApp-sun-http-binding completed
Undeploying service assembly MefWorkflowCompositeApp from target server.
Shutdown : MefWorkflowCompositeApp-sun-http-binding
Shutdown : MefWorkflowCompositeApp-sun-http-binding completed
JBIMA0412: Service Assembly with ID : MefWorkflowCompositeApp has been undeployed.
Deploying service assembly MefWorkflowCompositeApp to target server.
Deploying service unit : MefWorkflowCompositeApp-sun-http-binding from C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\AlertMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/AlertMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\AlertMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/AlertMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\ArchitectMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/ArchitectMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\ArchitectMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/ArchitectMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\CallMef.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/CallMef.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\CallSD.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/CallSD.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\FeatureBuilderMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/FeatureBuilderMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\FeatureBuilderMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/FeatureBuilderMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\GlobalStoreMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/GlobalStoreMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\GlobalStoreMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/GlobalStoreMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\LocalStoreMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/LocalStoreMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\LocalStoreMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/LocalStoreMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\LogCurrentState.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/LogCurrentState.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\MEFWEBService.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\OperatorInputMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/OperatorInputMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\OperatorInputMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/OperatorInputMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\OrderManagementMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/OrderManagementMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\OrderManagementMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/OrderManagementMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\RBLocalStoreMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/RBLocalStoreMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\RBLocalStoreMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/RBLocalStoreMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SecurityMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SecurityMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SecurityMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SecurityMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SmsAdministratorMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SmsAdministratorMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SmsAdministratorMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SmsAdministratorMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SmsParentMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SmsParentMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SmsParentMefBpel.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SmsParentMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SmsParentMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SolutionDomainBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SolutionDomainBpel.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SssMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SssMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SssMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SssMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SSSTalkerMefBpel.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SSSTalkerMefBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\SSSTalkerMefWeb.wsdl'.
Retrieving document at 'MEFWEBService.wsdl', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/SSSTalkerMefWeb.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/MEFWEBService.wsdl'.
Retrieving document at 'C:\Program Files\glassfish-v2-b53\domains\domain1\jbi\service-assemblies\MefWorkflowCompositeApp\MefWorkflowCompositeApp-sun-http-binding\sun-http-binding\MefWorkflow\UtilityServiceBpel.wsdl'.
Retrieving schema at 'WorkflowInformation.xsd', relative to 'file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/service-assemblies/MefWorkflowCompositeApp/MefWorkflowCompositeApp-sun-http-binding/sun-http-binding/MefWorkflow/UtilityServiceBpel.wsdl'.
JBIMA0402: Service Assembly file:/C:/Program Files/glassfish-v2-b53/domains/domain1/jbi/tmp/28345a2b1143bbd25887fe9/MefWorkflowCompositeApp.zip has been deployed.
Starting service assembly MefWorkflowCompositeApp on target server.
Starting BPELSE deploy process
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
ToXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oasis-open.org/wsbpel/2.0/process/executable
FromXmlParser.endElement(): Found unrecognized end element </query>, namespace=http://docs.oa -
Grabbing the elements from the XML root node
Hello, I haven't worked with XML in over a year and I didn't use it much then. I'm trying to remember the best way to get the values from the root note (not child nodes).
For instance, in the following xml, I want the timestamp and the messageID from stumessages.
I can't recall if you are supposed to use xmlsearch or something else. I know how to grab the child nodes (for some reason, that part was easier to recall).
<cfsavecontent variable="XMLFile"><?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE stuMessages SYSTEM "http://cody.glpconnect.com/DTD/StuMessage_Rev6.dtd">
<stuMessages timeStamp="14/05/2012 08:02:11 GMT" messageID="9768c7201b6f100585fbfa3243489116">
<stuMessage>
<esn>0-999999</esn>
<unixTime>1336982529</unixTime>
<gps>N</gps>
<payload length="9" source="pc" encoding="hex">0x3530E2B18801031200</payload>
</stuMessage>
</stuMessages>
</cfsavecontent>
<!--- Set the XML to a XML parsed variable we can use --->
<cfset MyXMLDoc = xmlParse(XMLFile) />
<!--- Dump the XML --->
<h2>Dump</h2>
<!--- <cfdump var="#MyXMLDoc#"> --->
<!--- Get all Message Nodes --->
<cfset messageNodes = xmlSearch(MyXMLDoc,'/stuMessages/stuMessage')>
<cfoutput>
<h2>Message Nodes</h2>
<cfloop from="1" to="#arraylen(messageNodes)#" index="i">
<!--- The array contents need to parsed so you can easily get at the child nodes children and attributes. --->
<cfset messageXML = xmlparse(messageNodes[i]) />
<b>esn:</b> #messageXML.stuMessage.esn.xmltext#<br>
<b>unixTime:</b> #messageXML.stuMessage.unixTime.xmlText#<br>
<b>gps:</b> #messageXML.stuMessage.gps.xmlText#<br>
<b>payload:</b> #messageXML.stuMessage.payload.xmlText#<br><br>
</cfloop>
</cfoutput>
Best regards
KRHello,
I figured it out.
I figured I would update my post in case anyone else was curious.
I just need to add the following two lines into the code to expose the elements of the root node.
<cfset timeStamp = MyXMLDoc.stuMessages.XmlAttributes.timeStamp>
<cfset messageid = MyXMLDoc.stuMessages.XmlAttributes.messageID>
The full code follows
<!--- Set the XML to a XML parsed variable we can use --->
<cfset MyXMLDoc = xmlParse(XMLFile) />
<!--- Dump the XML --->
<h2>Dump</h2>
<!--- <cfdump var="#MyXMLDoc#"> --->
<!--- Get all Message Nodes --->
<cfset messageNodes = xmlSearch(MyXMLDoc,'/stuMessages/stuMessage')>
<cfoutput>
<cfset timeStamp = MyXMLDoc.stuMessages.XmlAttributes.timeStamp>
<cfset messageid = MyXMLDoc.stuMessages.XmlAttributes.messageID>
#timeStamp#<br />
#messageid#<br />
<h2>Message Nodes</h2>
<cfloop from="1" to="#arraylen(messageNodes)#" index="i">
<!--- The array contents need to parsed so you can easily get at the child nodes children and attributes. --->
<cfset messageXML = xmlparse(messageNodes[i]) />
<b>esn:</b> #messageXML.stuMessage.esn.xmltext#<br>
<b>unixTime:</b> #messageXML.stuMessage.unixTime.xmlText#<br>
<b>gps:</b> #messageXML.stuMessage.gps.xmlText#<br>
<b>payload:</b> #messageXML.stuMessage.payload.xmlText#<br><br>
</cfloop>
</cfoutput> -
Retrieve data from recursive XML structure
Hi,
I had a XML which is something like below
<?xml version="1.0" encoding="iso-8859-1" ?>
<Relationship>
<Name>John</Name>
<Age>99</Age>
<Gender>Male</Gender>
<Children ID='1'>
<Name>Peter</Name>
<Age>55</Age>
<Gender>Male</Gender>
<Children ID='1'>
<Name>Winnie</Name>
<Age>40</Age>
<Gender>Female</Gender>
<Children ID='1'>
<Name>Sam</Name>
<Age>20</Age>
<Gender>Male</Gender>
</Children>
</Children>
</Children>
<Children ID='2'>
<Name>Mike</Name>
<Age>50</Age>
<Gender>Male</Gender>
<Children ID='1'>
<Name>Jessica</Name>
<Age>40</Age>
<Gender>Female</Gender>
<Children ID='1'>
<Name>Harison</Name>
<Age>20</Age>
<Gender>Male</Gender>
</Children>
</Children>
</Children>
</Relationship>
As you see, the node <Name><Age><Gender><Children> is repeated within every <Children> node
My question are:
1. Is is possible to retrieve all the <Name> value if we don't know how deep is the <Children> node?
2. Is is possible to retrieve the father and son/daugther relationship, i.e. John --> Peter, John-->Mike, Peter-->Winne, Mike-->Jessica
Thanks
VincentHi Vincent,
For 1, use a descendant axis, like this :
SQL> var xmldoc varchar2(4000)
SQL>
SQL> begin
2 :xmldoc := '<?xml version="1.0" encoding="iso-8859-1" ?>
3 <Relationship>
4 <Name>John</Name>
5 <Age>99</Age>
6 <Gender>Male</Gender>
7 <Children ID="1">
8 <Name>Peter</Name>
9 <Age>55</Age>
10 <Gender>Male</Gender>
11 <Children ID="1">
12 <Name>Winnie</Name>
13 <Age>40</Age>
14 <Gender>Female</Gender>
15 <Children ID="1">
16 <Name>Sam</Name>
17 <Age>20</Age>
18 <Gender>Male</Gender>
19 </Children>
20 </Children>
21 </Children>
22 <Children ID="2">
23 <Name>Mike</Name>
24 <Age>50</Age>
25 <Gender>Male</Gender>
26 <Children ID="1">
27 <Name>Jessica</Name>
28 <Age>40</Age>
29 <Gender>Female</Gender>
30 <Children ID="1">
31 <Name>Harison</Name>
32 <Age>20</Age>
33 <Gender>Male</Gender>
34 </Children>
35 </Children>
36 </Children>
37 </Relationship>';
38 end;
39 /
PL/SQL procedure successfully completed
SQL>
SQL> select x.*
2 from xmltable(
3 '/Relationship/descendant::Children/Name'
4 passing xmltype(:xmldoc)
5 columns name varchar2(30) path '.'
6 ) x
7 ;
NAME
Peter
Winnie
Sam
Mike
Jessica
Harison
6 rows selected
If you want to include "John" in the result set, just replace the XQuery expression with '/Relationship/descendant::Name'.
For 2, here's one way :
SQL> select x.*
2 from xmltable(
3 'for $i in /Relationship/descendant::Name
4 , $j in $i/following-sibling::Children/Name
5 return element r {
6 element parent {$i/text()}
7 , element child {$j/text()}
8 }'
9 passing xmltype(:xmldoc)
10 columns parent_name varchar2(30) path 'parent'
11 , child_name varchar2(30) path 'child'
12 ) x
13 ;
PARENT_NAME CHILD_NAME
John Peter
John Mike
Peter Winnie
Winnie Sam
Mike Jessica
Jessica Harison
6 rows selected
Or the recursive approach :
SQL> select x.*
2 from xmltable(
3 'declare function local:getChildren($p as element()) as element()*
4 {
5 for $i in $p/Children
6 return (
7 element r {
8 element parent_name {$p/Name/text()}
9 , element child_name {$i/Name/text()}
10 }
11 , local:getChildren($i)
12 )
13 }; (::)
14 local:getChildren(/Relationship)'
15 passing xmltype(:xmldoc)
16 columns parent_name varchar2(30) path 'parent_name'
17 , child_name varchar2(30) path 'child_name'
18 ) x
19 ;
PARENT_NAME CHILD_NAME
John Peter
Peter Winnie
Winnie Sam
John Mike
Mike Jessica
Jessica Harison
6 rows selected
Edited by: odie_63 on 24 août 2011 12:12 -
How do I return all elements from a xml doc?
I have a xml document which in my VB code I am saving the elements(ns1:Statute) in a variable
objXmlStatuteNode then adding that variable in to an object
objXmlStatutesDoc.
My code is working but only displaying one element (<ns1:Statute>) even though I have 3 <ns1:Statute>. How do I display all 3 <ns1:Statute>?
Here is my xml document modified version to make it short.
<ns1:Statutes xmlns:ns1="http://crimnet.state.mn.us/mnjustice/statute/messages/4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:Statutes xmlns:ns1="http://crimnet.state.mn.us/mnjustice/statute/messages/4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
</ns1:Statutes>
Here is my vb code
Public Class GetStatutes
Shared Sub main()
Dim objMessageProcessor As New MessageProcessor
Dim objSchemasCollection As New Msc.Integration.MessageBroker.Library.v4.SchemasCollection
Dim objTransformsCollection As New Msc.Integration.MessageBroker.Library.v4.TransformsCollection
objMessageProcessor.ProcessInputQueue(False, False, objSchemasCollection, objTransformsCollection)
End Sub
'Child class MessageProcessor which inherits from main class GetStatutes
Private Class MessageProcessor
Inherits Msc.Integration.ServiceCatalog.Library.v4.SoapMessageProcessor
Protected Overrides Sub ProcessMessage(ByRef aobjBroker As ServiceCatalog.Library.v4.Broker, ByRef aobjXMLInputSoapEnvelopeDoc As System.Xml.XmlDocument, ByRef aobjInstantiatedObjectsCollection As Microsoft.VisualBasic.Collection, ByRef aobjConsumer As ServiceCatalog.Library.v4.Consumer)
MyBase.ProcessMessage(aobjBroker, aobjXMLInputSoapEnvelopeDoc, aobjInstantiatedObjectsCollection, aobjConsumer)
Dim objXmlStatutesDoc As XmlDocument
Dim objXmlStatuteNode As XmlNode
Dim objNameTable As Xml.NameTable
Dim objXMLNameSpaceManager As XmlNamespaceManager
Dim objXmlBcaResponseDoc As XmlDocument
Dim objXMLOutputSoapEnvelopeDoc As XmlDocument
'set up the namespace manager
objNameTable = New Xml.NameTable
objXMLNameSpaceManager = New Xml.XmlNamespaceManager(objNameTable)
objXMLNameSpaceManager.AddNamespace("soap", Msc.Integration.Utility.Library.v4.Soap.NamespaceUri(aobjBroker.SoapMessageVersion))
objXMLNameSpaceManager.AddNamespace("wsa", Msc.Integration.Utility.Library.v4.Soap.WsaNamespaceUri(aobjBroker.SoapMessageVersion))
objXMLNameSpaceManager.AddNamespace("ns1", "http://crimnet.state.mn.us/mnjustice/statute/messages/4.0")
objXMLNameSpaceManager.AddNamespace("st", "http://crimnet.state.mn.us/mnjustice/statute/4.0")
objXmlStatuteNode = aobjXMLInputSoapEnvelopeDoc.DocumentElement.SelectSingleNode("soap:Body/GetBCAStatuteRequest", objXMLNameSpaceManager)
objXmlStatutesDoc = New XmlDocument
'Get the statutes
objXmlBcaResponseDoc = New XmlDocument
objXmlBcaResponseDoc.Load("\\j00000swebint\mscapps\deve\appfiles\temp\BcaStatutes.xml")
objXmlStatutesDoc = New XmlDocument
objXmlStatutesDoc.AppendChild(objXmlStatutesDoc.CreateElement("Statutes"))
objXmlStatutesDoc.DocumentElement.SetAttribute("runType", "Request")
objXmlStatutesDoc.DocumentElement.SetAttribute("runDateTime", Format(Now, "yyyy-MM-ddTHH:mm:ss"))
'Create a variable to store the statute element information ns1:Statute name space
objXmlStatuteNode = objXmlBcaResponseDoc.DocumentElement.SelectSingleNode("ns1:Statute", objXMLNameSpaceManager)
'Add the variable objXmlStatudeNode to the object objXmlStatuteDoc
objXmlStatutesDoc.DocumentElement.AppendChild(objXmlStatutesDoc.ImportNode(objXmlStatuteNode, True))
'Create the SOAP envelope to return the reply to the submitter
objXMLOutputSoapEnvelopeDoc = aobjBroker.CreateSoapEnvelope("http://www.courts.state.mn.us/StatuteService/1.0/GetStatutesResponse", _
Msc.Integration.Utility.Library.v4.Soap.GetReplyEndpointReference(aobjXMLInputSoapEnvelopeDoc), _
objXmlStatutesDoc.DocumentElement, , aobjConsumer, _
aobjXMLInputSoapEnvelopeDoc.DocumentElement.SelectSingleNode("soap:Header/wsa:MessageID", objXMLNameSpaceManager).InnerText)
'Return the response to the requester
aobjBroker.Reply(objXMLOutputSoapEnvelopeDoc)
End Sub
End Class
End Classwinkimjr2,
Are you aware that there's a duplicate line in the XML? It won't work with that in there so I've modified it as shown here:
<ns1:Statutes xmlns:ns1="http://crimnet.state.mn.us/mnjustice/statute/messages/4.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
<ns1:Statute>
<StatuteId xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">12875</StatuteId>
<Chapter xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">171</Chapter>
<Section xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">22</Section>
<Subdivision xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1(7)</Subdivision>
<Year xmlns="http://crimnet.state.mn.us/mnjustice/statute/4.0">1994</Year>
</ns1:Statute>
</ns1:Statutes>
The following isn't a way that I'm proud to do but I couldn't manage to work out LINQ-To-XML all the way through it. Nevertheless, this will work:
Option Strict On
Option Explicit On
Option Infer Off
Imports System.IO.Path
Imports <xmlns:NS1="http://crimnet.state.mn.us/mnjustice/statute/messages/4.0">
Public Class Form1
Private Class NS1
Private _statuteID As Integer
Private _chapter As Integer
Private _section As Integer
Private _subdivision As String
Private _year As Integer
Public Sub New(ByVal id As Integer, _
ByVal chapter As Integer, _
ByVal section As Integer, _
ByVal subdivision As String, _
ByVal year As Integer)
_statuteID = id
_chapter = chapter
_section = section
_subdivision = subdivision.Trim
_year = year
End Sub
Public ReadOnly Property Chapter() As Integer
Get
Return _chapter
End Get
End Property
Public ReadOnly Property Section() As Integer
Get
Return _section
End Get
End Property
Public ReadOnly Property StatuteID() As Integer
Get
Return _statuteID
End Get
End Property
Public ReadOnly Property Subdivision() As String
Get
Return _subdivision
End Get
End Property
Public ReadOnly Property Year() As Integer
Get
Return _year
End Get
End Property
End Class
Private ns1List As New List(Of NS1)
Private Sub Form1_Load(ByVal sender As System.Object, _
ByVal e As System.EventArgs) _
Handles MyBase.Load
Dim desktop As String = _
My.Computer.FileSystem.SpecialDirectories.Desktop
Dim xmlPath As String = _
Combine(desktop, "Example.xml")
GetNS1Data(xmlPath)
Stop
' Now hover your mouse over "ns1List" above
' and expand it. You'll see your data.
End Sub
Private Sub GetNS1Data(ByVal filePath As String)
If My.Computer.FileSystem.FileExists(filePath) Then
Try
Dim xDoc As XElement = XElement.Load(filePath)
For Each sData As XElement In xDoc...<NS1:Statute>
Dim id As Integer
Dim chapter As Integer
Dim section As Integer
Dim subdivision As String = Nothing
Dim year As Integer
For Each element As XElement In sData.Elements
Select Case element.Name.LocalName
Case "StatuteId"
If Not Integer.TryParse(element.Value, id) Then
Throw New ArgumentException("The StatuteID could not be parsed.")
End If
Case "Chapter"
If Not Integer.TryParse(element.Value, chapter) Then
Throw New ArgumentException("The Chapter could not be parsed.")
End If
Case "Section"
If Not Integer.TryParse(element.Value, section) Then
Throw New ArgumentException("The Section could not be parsed.")
End If
Case "Subdivision"
If String.IsNullOrEmpty(element.Value) OrElse element.Value.Trim = "" Then
Throw New ArgumentException("The Subdivision could not be parsed.")
Else
subdivision = element.Value
End If
Case "Year"
If Not Integer.TryParse(element.Value, year) Then
Throw New ArgumentException("The Year could not be parsed.")
End If
End Select
Next
Dim instance As New NS1(id, chapter, section, subdivision, year)
ns1List.Add(instance)
Next
Catch ex As Exception
Throw
End Try
End If
End Sub
End Class
I hope that helps. :)
Still lost in code, just at a little higher level. -
Hello all,
I am new to xml, and I thought I had a handle on things until I got this problem...I am getting an xml string from the body of an e-mail message, and then I am trying to extract elements out of it. Here is an example xml string:
<?xml version="1.0" encoding="UTF-8"?>
<filterRoot>
<filter action="MOVE" bool="AND" name="My Saved Filter" target="Deleted Items">
<condition attribute="TO" bool="AND" contains="CONTAINS">
<value>[email protected]</value>
<value>[email protected]</value>
<value>[email protected]</value>
<value>[email protected]</value>
<value>[email protected]</value>
</condition>
</filter>
</filterRoot>I am trying to extract the <filter> element out and store it into a Vector of Elements (called, not surprisingly, filters). However, I am getting a class cast exception:
java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImplIt is being called from where I trying to extract the <filter> in this way:
filterRoot = doc.getDocumentElement(); // get topmost element
NodeList list = filterRoot.getChildNodes();
Vector newFilters = new Vector();
debug("There are "+list.getLength()+" filters in document");
for(int i=0; i<list.getLength(); i++) {
Node n = list.item(i);
debug("Node "+i+" getNodeValue() is "+n.getNodeValue());
Element temp = (Element)n;
newFilters.add(temp);
}Perhaps my question is, how do I correctly get hold of the <filter> node so that I may cast it as an Element?
thanks,
RizYes, I already knew that it is not a bug.
But, I got next step problem.
I put "false" to "include-ignorable-whitespace" feature in xerces parser.
But, I still found unnecessary TextNodes in my parser object.
Feature link : http://xerces.apache.org/xerces-j/features.html.
I use xerces-2_8_0.
DOMParser parser = new DOMParser();
parser.setFeature("http://apache.org/xml/features/dom/include-ignorable-whitespace", false);
parser.parse(inputSource);
document = ps.getDocument();
System.out.println(document.getDocumentElement().getChildNodes().length()); // still wrong lengthIs tehre any example of usage this feature?
What is default defination of white-space "\n "(enter with one space) or " "(juz white space) or something else?
Thanks, -
Using Elements from an XML File
Background: I am writing a config file for an applicaiton and inside this file on initial setup parameters are supplied. I can get some to work (i.e. directories and such), but when i try to give it the driver name for the database, the Class.forName method fails.
I read out the value from the element:
<sql_driver>"sun.jdbc.odbc.JdbcOdbcDriver"</sql_driver>Then when i try to apply that string to the Class.forName() method I get the following error.
java.lang.ClassNotFoundException: "sun/jdbc/odbc/JdbcOdbcDriver"I don't understand why it shows up with "/" insead of "."
Any thoughts would be great, I have been working this for a while.
Thanks in advance,
RDEI have tried it both ways, using the quotes in the xml file and putting the quotes in after I read the String out. I am just really confused as to why the String replaces "." for "/"..... Is there something I am missing?
String driverName = ReadConfig.sqldriver;
Class.forName(driverName);
or
String driverName = '"' + ReadConfig.sqldriver + '"';
Class.forName(driverName);Thanks
Maybe you are looking for
-
Many to Many relationship - Bridge Table
This post may be more appropriate for a data modeling discussion group, but thought I would post here because it will ultimately be modeled/used in OBIEE. Can someone help me understand what the point/use is for a Bridge table when managing a many to
-
Hello, I am looking for a very simple(barebone)Java editor which can provide syntax highlighting facility. I need to plug it into my application. Can anybody suggest me something? Looking forward 2 ur replies.
-
Hi, I am doing MFBF for MTO scenario. In MFBF t-code I selected MTO tab and I entered the Sale order,plant and the sales order item. when I press enter I am getting an error telling "NO VERSION EXISTS IN PLANNED ORDER XXX" No version exists in planne
-
Help- something has happened in that mhy iCloud/find my iPhone is not opening up- all I see is a blue background and the whirling wheel...
-
Hopefully it's just something I'm doing wrong BUT, after I log into Connect if I click on 'Meetings' I'm asked to log in again, then if I click on 'Shared Meetings' I'm asked to log in again, then if I click on 'User Meetings' I need to log in again