Error in Parsing XML using fx:XML/ [Error- 1090: XML parser failure: element is malformed]
Hi All,
I am getting error while loading XML in <fx:XML> tag.
Error:
TypeError: Error #1090: XML parser failure: element is malformed.
MXML Code:
<fx:Declarations>
<fx:XML id="xmlSource2" source="sample.xml"/>
</fx:Declarations>
Sample XML Used: (sample.xml)
<?xml version="1.0" encoding="UTF-8"?>
<File>
<Chemical id="000035676" displayFormula="C39-H45-N2-O6"
displayName="Dimethyltubocurarine">
<NameList>
<NameOfSubstance>
Dimethyltubocurarine
<SourceList>
<Source>MESH</Source>
</SourceList>
</NameOfSubstance>
<SystematicName>
Tubocuraranium, 6,6',7',12'-tetramethoxy-2,2',2'-trimethyl-
<SourceList>
<Source>NLM</Source>
</SourceList>
</SystematicName>
<Synonyms>
Dimethyltubocurarine
<SourceList>
<Source>NLM</Source>
</SourceList>
</Synonyms>
<Synonyms>
Dimethyltubocurarinium
<SourceList>
<Source>NLM</Source>
</SourceList>
</Synonyms>
<Synonyms>
Methyltubocurarinum
<SourceList>
<Source>NLM</Source>
</SourceList>
</Synonyms>
</NameList>
<NumberList>
<CASRegistryNumber>
35-67-6
<SourceList></SourceList>
</CASRegistryNumber>
<RelatedRegistryNumber>
518-26-3 (iodide.hydriodide)
<SourceList>
<Source>MESH</Source>
</SourceList>
</RelatedRegistryNumber>
</NumberList>
<ClassificationList>
<ClassificationCode>
Neuromuscular nondepolarizing agents
<SourceList>
<Source>MESH</Source>
</SourceList>
</ClassificationCode>
</ClassificationList>
<FormulaList>
<MolecularFormula>
C39-H45-N2-O6
<SourceList>
<Source>NLM</Source>
</SourceList>
</MolecularFormula>
</FormulaList>
<FormulaFragmentList></FormulaFragmentList>
<NoteList></NoteList>
<LocatorList>
<FileLocator
url="http://cnetdb.nci.nih.gov/cgi-bin/srchcgi.exe?DBID=****3&SFMT=****_basic%2F10%2F0%2F0&TYPE=search&SRCHFORM=passthru%3D%Asrchform%3ASRCH%3A&FIELD_001=[CAS]35-67-6&GoButton=Search&FIELD_001_CTL=EXPR&FIELD_908=&FIELD908_CTL=HASABSTRACT&FIELD_903=&FIELD_903_CTL=YEARFORE&DOCPAGE=10">CANCERLIT</FileLocator>
<FileLocator
url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@and+@term+@rn+35-67-6+@term+@org+DART">DART/ETIC</FileLocator>
<FileLocator
url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=35-67-6[ECNO]+OR+"~"[MH]">MEDLINE</FileLocator>
<FileLocator
url="http://www.nlm.nih.gov/cgi/mesh/2K/MB_cgi?term=35-67-6&rn=1">MESH</FileLocator>
<FileLocator
url="http://toxnet.nlm.nih.gov/cgi-bin/sis/search/r?dbs+toxline:@term+@rn+35-67-6+@OR+@mh+""">TOXLINE</FileLocator>
</LocatorList>
</Chemical>
</File>
Also, when I am using HttpService to load same XML I am getting no such error!!
<s:HTTPService id="employeeService"
url="sample.xml"
result="employeeService_resultHandler(event)"
fault="employeeService_faultHandler(event)"/>
Please help!!
Thanks.
Abhinav
I think url in XML is creating problem here.
<FileLocator
url="http://www.ncbi.nlm.nih.gov/entrez/query.fcgi?cmd=search&db=PubMed&term=23-95-0[ECNO]+OR+"~"[MH]">MEDLINE</FileLocator>
Is there any way to parse this XML using <fx:XML/> ??
Thanks.
Similar Messages
-
Generate nested XML using OracleXMLQuery generates error
Hello,
I have oracle 8.1.6 with XSQL 1.0.4 and need to generate XML out of a query that contains the // init the OracleXMLQuery
OracleXMLQuery qry = new OracleXMLQuery(conn, query);
// shape the XML doc generated
qry.setMaxRows(2); // set the maximum number of rows to be returned
qry.setSkipRows(3); // numbers of rows to skipped
qry.setRowsetTag("MYDOC"); // set the tags encapsulating the whole doc
qry.setRowTag("RECORD"); // sets the row separator tag
qry.setRowIdAttrName("cnt"); // sets the id attribute of the row element
qry.useNullAttributeIndicator(true); // use attr. to indicate nullness
qry.useUpperCaseTagNames(); // use upper case tag names
qry.setErrorTag("ERR"); // tag for errors writen to XML doc
XMLDocument myXMLDocument = (XMLDocument)qry.getXMLDOM();
PrintWriter out = response.getWriter();
myXMLDocument.print(out);
out.close();nullI have exactly the same problem by using XSU.
If somebody solve it already ?
David, can you please provide more information or small example, how can I extract OracleConnection or Oracle Specific Driver inside the Weblogic App. Server and not generic weblogic.jdbc.rmi.SerialConnection instance.
I'm using Oracle thinDriver on Oracle8i.
Thank you in advance.
<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by David G:
have seen similar problems with wrapped jdbc driver being passed into Weblogic pool service and then cast back into OracleDriver after getting it back from Weblogic's JNDI DataSource lookup ...the Oracle extensions do not seem to survive Weblogic's jdbc pool services handling. I have gone over to running all my connection pools in Oracle's own namespace jdbc_access:// for JNDI lookups on DataSource pools instead. Much happier. <HR></BLOCKQUOTE>
null -
SOASuite 11g
Oracle Weblogic Server 10.3.3
Oracle Solaris on SPARC (64-bit) 10
Database: Oracle Server - Enterprise Edition 10.2.0.5
When I start the SOA domain server, I find the following in the log file:
<Feb 25, 2011 10:41:23 AM CET> <Error> <org.apache.commons.digester.Digester> <BEA-000000> <Parse Error at line 9 column 79: <Line 9,
Column 79>: XML-20129: (Error) Namespace prefix 'ui' used but not declared.
org.xml.sax.SAXParseException: <Line 9, Column 79>: XML-20129: (Error) Namespace prefix 'ui' used but not declared.
at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:422)
at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:342)
at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
at org.apache.commons.digester.Digester.parse(Digester.java:1785)
at oracle.fabric.composite.Parser.parseComposite(Parser.java:132)
at oracle.integration.platform.kernel.WLSFabricKernelInitializer.deployComposite(WLSFabricKernelInitializer.java:493)
at oracle.integration.platform.kernel.WLSFabricKernelInitializer.prepareCompositeDeployments(WLSFabricKernelInitializer.java:
239)
at oracle.integration.platform.kernel.WLSFabricKernelInitializer.init(WLSFabricKernelInitializer.java:127)
at javax.servlet.GenericServlet.init(GenericServlet.java:241)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:283)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.StubSecurityHelper.createServlet(StubSecurityHelper.java:64)
at weblogic.servlet.internal.StubLifecycleHelper.createOneInstance(StubLifecycleHelper.java:58)
at weblogic.servlet.internal.StubLifecycleHelper.<init>(StubLifecycleHelper.java:48)
at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:539)
at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppServletContext.java:1976)
at weblogic.servlet.internal.WebAppServletContext.loadServletsOnStartup(WebAppServletContext.java:1950)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1869)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3126)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1512)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:486)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:1267)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:409)
at weblogic.application.internal.EarDeployment.activate(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
>
My composite.xml is:
<composite name="JIPSYHandleRTOTaskEBF" revision="1.0" mode="active" state="on"
xmlns="http://xmlns.oracle.com/sca/1.0"
xmlns:ui="http://xmlns.oracle.com/soa/designer/"^M
xmlns:xs="http://www.w3.org/2001/XMLSchema">^M
<import location="GetTimeoutPeriod.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetTimeoutPeriod/"/>
<service ui:wsdlLocation="JIPSYHandleRTOTaskEBF.wsdl" name="client">
</composite>
But when it has been deployed, I see that this has been changed into:
<composite name="JIPSYHandleRTOTaskEBF" revision="1.0" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<import location="GetTimeoutPeriod.wsdl" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/GetTimeoutPeriod/"/>
<service ui:wsdlLocation="JIPSYHandleRTOTaskEBF.wsdl" name="client">
</composite>
(I exported this from MDS).
Apparently, some namespaces are stripped.
This appears to happen during the deploy (using ant), because the version in the generated jar file is already missing the namespaces.
The BPEL processes appear to work fine though.
Why is this happening and how can I prevent these errors?I've fiddled around with the file composite.xml and found the following workaround:
If I change the start of the file to:
<?xml version="1.0" encoding="UTF-8"?>
<composite name="JIPSYUpdateWorkflowReqABCSImpl"
xmlns="http://xmlns.oracle.com/sca/1.0"
xmlns:ui="http://xmlns.oracle.com/soa/designer/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
revision="1.0"
mode="active"
state="on">
it remains unchanged and the errors during deployment are gone. -
Error when trying to use Squiggly in AIR
Hi,
I am trying to use Squiggly in an Adobe AIR application but keep getting this error:
TypeError: Error #1090: XML parser failure: element is malformed.
at com.adobe.linguistics.spelling::SpellUI/loadConfigComplete()[C:\p4_garuda1890_ugoyal-xp\e sg\squiggly\main\AdobeSpellingUI\src\com\adobe\linguistics\spelling\SpellUI.as:449]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()
I included the basic AdobeSpellingConfig.xml in the src folder. The file content is:
<?xml version="1.0" encoding='UTF-8'?>
<SpellingConfig>
<LanguageResource language="English" languageCode="en_US" ruleFile="dictionaries/en_US/en_US.aff" dictionaryFile="dictionaries/en_US/en_US.dic"/>
</SpellingConfig>
It seems that the error above is thrown regardless to the actual location of the xml file.
Any idea is mostly appreciated.
Thanks,
EilonHi,
Check this code..This is working fine for me..Use the same method.
data: t_mara type standard table of mara.
data: s_mara type mara.
select * up to 10 rows
from mara
into table t_mara.
loop at t_mara into s_mara.
write: / s_mara-matnr.
hide s_mara-matnr.
endloop.
at line-selection.
write: / s_mara-matnr.
Thanks,
Naren -
A fatal error occurred preventing product use, LaserJet Pro 200 color MFP M276nw
When trying to install the full printer software suite, as soon as I click the button to install after the .exe is extracted, I get an alert window with, "A fatal error occurred preventing product use." No error code, just an option to close the dialog. I have read all the related support topics and similar threads and tried all the solutions to no avail. Pasted below is the detailed error log. Any help at all would be much appreciated, Happy New Year!
Version=1
EventType=CLR20r3
EventTime=130330861946634368
ReportType=2
Consent=1
UploadTime=130330861947102369
ReportIdentifier=b741489f-732d-11e3-ad06-78e7d1894a6a
WOW64=1
Response.BucketId=3240107344
Response.BucketTable=5
Response.type=4
Sig[0].Name=Problem Signature 01
Sig[0].Value=hpbcsiinstaller.exe
Sig[1].Name=Problem Signature 02
Sig[1].Value=5.0.3.8039
Sig[2].Name=Problem Signature 03
Sig[2].Value=4fe20fe8
Sig[3].Name=Problem Signature 04
Sig[3].Value=hpbcsiInstaller
Sig[4].Name=Problem Signature 05
Sig[4].Value=5.0.3.8039
Sig[5].Name=Problem Signature 06
Sig[5].Value=4fe20fe8
Sig[6].Name=Problem Signature 07
Sig[6].Value=e
Sig[7].Name=Problem Signature 08
Sig[7].Value=1e
Sig[8].Name=Problem Signature 09
Sig[8].Value=System.TypeInitialization
DynamicSig[1].Name=OS Version
DynamicSig[1].Value=6.1.7601.2.1.0.768.3
DynamicSig[2].Name=Locale ID
DynamicSig[2].Value=1033
UI[2]=C:\HP_LaserJet_200_color_MFP_M276\Installer\hpbcsiInstaller.exe
UI[3]=HP Installer has stopped working
UI[4]=Windows can check online for a solution to the problem.
UI[5]=Check online for a solution and close the program
UI[6]=Check online for a solution later and close the program
UI[7]=Close the program
LoadedModule[0]=C:\HP_LaserJet_200_color_MFP_M276\Installer\hpbcsiInstaller.exe
LoadedModule[1]=C:\Windows\SysWOW64\ntdll.dll
LoadedModule[2]=C:\Windows\SYSTEM32\MSCOREE.DLL
LoadedModule[3]=C:\Windows\syswow64\KERNEL32.dll
LoadedModule[4]=C:\Windows\syswow64\KERNELBASE.dll
LoadedModule[5]=C:\Windows\system32\apphelp.dll
LoadedModule[6]=C:\Windows\AppPatch\AcLayers.DLL
LoadedModule[7]=C:\Windows\syswow64\SspiCli.dll
LoadedModule[8]=C:\Windows\syswow64\msvcrt.dll
LoadedModule[9]=C:\Windows\syswow64\RPCRT4.dll
LoadedModule[10]=C:\Windows\syswow64\CRYPTBASE.dll
LoadedModule[11]=C:\Windows\SysWOW64\sechost.dll
LoadedModule[12]=C:\Windows\syswow64\USER32.dll
LoadedModule[13]=C:\Windows\syswow64\GDI32.dll
LoadedModule[14]=C:\Windows\syswow64\LPK.dll
LoadedModule[15]=C:\Windows\syswow64\USP10.dll
LoadedModule[16]=C:\Windows\syswow64\ADVAPI32.dll
LoadedModule[17]=C:\Windows\syswow64\SHELL32.dll
LoadedModule[18]=C:\Windows\syswow64\SHLWAPI.dll
LoadedModule[19]=C:\Windows\syswow64\ole32.dll
LoadedModule[20]=C:\Windows\syswow64\OLEAUT32.dll
LoadedModule[21]=C:\Windows\system32\USERENV.dll
LoadedModule[22]=C:\Windows\system32\profapi.dll
LoadedModule[23]=C:\Windows\system32\WINSPOOL.DRV
LoadedModule[24]=C:\Windows\system32\MPR.dll
LoadedModule[25]=C:\Windows\system32\IMM32.DLL
LoadedModule[26]=C:\Windows\syswow64\MSCTF.dll
LoadedModule[27]=C:\Windows\Microsoft.NET\Framework\v4.0.30319\mscoreei.dll
LoadedModule[28]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorwks.dll
LoadedModule[29]=C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll
LoadedModule[30]=C:\Windows\assembly\NativeImages_v2.0.50727_32\mscorlib\9a6c1b7af18b4d5a91dc7f8d6617522f\mscorlib.ni.dll
LoadedModule[31]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorsec.dll
LoadedModule[32]=C:\Windows\syswow64\WINTRUST.dll
LoadedModule[33]=C:\Windows\syswow64\CRYPT32.dll
LoadedModule[34]=C:\Windows\syswow64\MSASN1.dll
LoadedModule[35]=C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7601.18201_none_ec80f00e8593ece5\COMCTL32.dll
LoadedModule[36]=C:\Windows\system32\CRYPTSP.dll
LoadedModule[37]=C:\Windows\system32\rsaenh.dll
LoadedModule[38]=C:\Windows\syswow64\imagehlp.dll
LoadedModule[39]=C:\Windows\system32\ncrypt.dll
LoadedModule[40]=C:\Windows\system32\bcrypt.dll
LoadedModule[41]=C:\Windows\SysWOW64\bcryptprimitives.dll
LoadedModule[42]=C:\Windows\system32\GPAPI.dll
LoadedModule[43]=C:\Windows\system32\cryptnet.dll
LoadedModule[44]=C:\Windows\syswow64\WLDAP32.dll
LoadedModule[45]=C:\Windows\system32\SensApi.dll
LoadedModule[46]=C:\Windows\system32\uxtheme.dll
LoadedModule[47]=C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorjit.dll
LoadedModule[48]=C:\Windows\system32\RpcRtRemote.dll
LoadedModule[49]=C:\HP_LaserJet_200_color_MFP_M276\Installer\hpbcsiCommonTools.dll
LoadedModule[50]=C:\HP_LaserJet_200_color_MFP_M276\Installer\NLog.dll
LoadedModule[51]=C:\Windows\system32\VERSION.dll
LoadedModule[52]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System\5d22a30e587e2cac106b81fb351e7c08\System.ni.dll
LoadedModule[53]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Configuration\29f3ae8d313e62b4daed1107ccd29f9f\System.Configuration.ni.dll
LoadedModule[54]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Xml\a9852a75edb6ed7cd5271b05519f5b56\System.Xml.ni.dll
LoadedModule[55]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Drawing\5aa44bce7933e4de09d935848f868a4b\System.Drawing.ni.dll
LoadedModule[56]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Windows.Forms\ef0a534be135cd8f0d99d938d8b1814a\System.Windows.Forms.ni.dll
LoadedModule[57]=C:\Windows\assembly\NativeImages_v2.0.50727_32\System.Data\764054efc88f51b54c8d7e44df26b671\System.Data.ni.dll
LoadedModule[58]=C:\Windows\assembly\GAC_32\System.Data\2.0.0.0__b77a5c561934e089\System.Data.dll
LoadedModule[59]=C:\Windows\syswow64\WS2_32.dll
LoadedModule[60]=C:\Windows\syswow64\NSI.dll
State[0].Key=Transport.DoneStage1
State[0].Value=1
FriendlyEventName=Stopped working
ConsentKey=CLR20r3
AppName=HP Installer
AppPath=C:\HP_LaserJet_200_color_MFP_M276\Installer\hpbcsiInstaller.exe
ReportDescription=Stopped workingDid you try to uninstall every .NET and then try again? Follow this guide:
http://knowledge.autodesk.com/support/autocad/troubleshooting/caas/sfdcarticles/sfdcarticles/How-to-... -
Query on sorting XML using XSLT and getting the same XML as output !
Hi,
Looking for one information regarding sorting XML using XSLT , with the sorted XML as output. For eg. my XML is :
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
<levelone>
<child ID="1" sort="5">
<name>Paul</name>
</child>
<child ID="2" sort="1">
<name>Adam</name>
</child>
<child ID="3" sort="2">
<name>Will</name>
</child>
</levelone>
and XSL :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/levelone">
<xsl:copy>
<xsl:apply-templates>
<xsl:sort select="@sort"/>
</xsl:apply-templates>
</xsl:copy>
</xsl:template>
<xsl:template match="child">
<xsl:copy-of select="."/>
</xsl:template>
</xsl:stylesheet>
This does the sort based on Name. But I want to get the same xml as output with the name sorted. Eg.
<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="sort1.xsl"?>
<levelone>
<child ID="2" sort="1">
<name>Adam</name>
</child>
<child ID="1" sort="5">
<name>Paul</name>
</child>
<child ID="3" sort="2">
<name>Will</name>
</child>
</levelone>
Any pointers will be highly appreciated.
- ThanksDon't you want <xsl:sort select="name"/> rather than <xsl:sort select="@sort"/>?
-
I am trying to use this in my weblogic.xml and this is the error that I get:
weblogic-web-app>
<description>Test Web App</description>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/TestDSRef</res-ref-name>
<jndi-name>TestJdbc</jndi-name>
</resource-description>
</reference-descriptor>
<security-permission>
<security-permission-spec>
// grant ability to read any file
grant codeBase "http://server/virtual_directory/-"
permission java.io.FilePermission "<<ALL FILES>>", "read";
</security-permission-spec>
</security-permission>
</weblogic-web-app>
Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
[Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
Any ideas on what I might be doing wrong? When I remove the security-permissions,
the application deploys fine.I am trying to use this in my weblogic.xml and this is the error that I get:
weblogic-web-app>
<description>Test Web App</description>
<reference-descriptor>
<resource-description>
<res-ref-name>jdbc/TestDSRef</res-ref-name>
<jndi-name>TestJdbc</jndi-name>
</resource-description>
</reference-descriptor>
<security-permission>
<security-permission-spec>
// grant ability to read any file
grant codeBase "http://server/virtual_directory/-"
permission java.io.FilePermission "<<ALL FILES>>", "read";
</security-permission-spec>
</security-permission>
</weblogic-web-app>
Error parsing descriptor in Web appplication "e:\bea7_2\user_projects\mydomain\.\applications\.wlnotdelete\wl_comp15697.war"
[Path="e:\bea7_2\user_projects\mydomain\.\myserver\upload\ourpeople", URI="ourpeople.war"]
Any ideas on what I might be doing wrong? When I remove the security-permissions,
the application deploys fine. -
Error message when using Spry Data set with XML
Hi,
I have what i see as a big problem, might just be me being
dumm, but here we go.
When I try to use the feature of spry XML Data Set and insert
spry table I get error message when trying it in IE 7.
There are even a problem when I use fireworks automated slide
show function, where you can choose to use the Spry/XML gallery
feature.
The error message I get everytime (incl the auto gallery in
fireworks) is:
The tag: "html" doesn't have an attribute: "xmlns:spry" in
currently active versions.[XHTML 1.0 transitional]
The tag: "div" doesn't have an attribute: "spry:region" in
currently active versions.[XHTML 1.0 transitional]
The tag: "th" doesn't have an attribute: "spry:sort" in
currently active versions.[XHTML 1.0 transitional]
and so on.
What´s wrong?!Hello barvid,
Ok, let's take each problem step by step:
1. The first error you see in the browser: " Exception while
loading ..." normally appears when you try to load files that are
not permitted by the browser security model. This means the XML
file you try to load is located on a different server than your
HTML which is not allowed. The browser is not permitting to load
any files that are not in the same domain as the current page
because of the complex security risks. You'll have to either get
the XML file from its original location and save it in your website
or use a proxy on your web server that should request that file
from the external server and send it to the browser as an XML from
the same domain as the HTML origin.
1.2 The "Exception while loading ..." error you see is a
generic error and my previous advise is based on my experience. In
case this is not your scenario you'll have to open the SpryData.js
and around line 112 you'll see the following code:
Spry.Debug.reportError("Exception caught while loading " +
url + ": " + e);
Please change this line with the following line of code:
Spry.Debug.reportError("Exception caught while loading " +
url + ": " + (e.message?e.message:e));
to obtain a more verbose error message that may clarify the
reasons of your errors.
2. The problems you describe are not browser errors but they
are w3c validation errors. At this point the XHTML standard allows
every application that define custom namespace attributes to also
link a DTD to the page so the page to continue to be valid.
Unfortunately at this point this feature is not correctly supported
by the FF and IE so we wrote an articles about how you should
link
the Spry DTD to your page so the validator understand the
custom attributes Spry use. You'll find inside the full description
of the problems and all the technical details you'll need to know
to solve this issue.
Regards,
Cristian -
XSL-1009 error in XML to XML using XSL
I'm using XSL to transform one XML format to another using and XSL transform file. I'm initiating this with ORAXSL in.xml transform.xsl out.xml. The XSL file has in it:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.oracle.com/XSL/Transform/Java" version="1.0">
<xsl:import href="../generic/parsePOHeader.xsl"/>
<xsl:import href="../generic/parsePOLine.xsl"/>
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
ORAXSL gives an error of XSL-1009: Attribute xsl:version not found in XSL:Stylesheet.
Putting an XSL: prefix on the version doesn't help. A search for help on this site had a solution for XSL that create HTML.
Has anyone else solved this problem?Thanks everyone for th ereply. Yes, I tested the mapping in integration bulider and it works fine. Even the file conversion works fine intermittantly! Sometimes it converts successfully and wrties file to target location and sometimes I get this error. I checkd in sxi_cache and I see the mapping xsl files there. I jus had basis reboot PI server and run some cache commands but still same problem! Also, when I have to files in source directory sometimes it converts both, sometimes one and sometimes both fails! I haveno clue what els to try.
What are adapter nodes and wher can I check for that?
Thanks.
Mithun -
Error when reading data from XML using JAXB?
Hi all,
I get the error message when reading data from XML using JAXB.
[org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
(AbstractUnmarshallerImpl.java:315)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
I don't find the reason, please help!
Thanks in advance!The problem is sovled.
-
Add mobile broadband profile using netsh gives "Invalid Profile XML" error
We're trying to create an automated installation to upgrade to 8.1 Pro soon and since we have our own APN at our provider, we'd like to add this using a script. However when I try to add my XML profile using
netsh mbn add profile interface="Mobile broadband" name="profile.xml"
I receive the following error: Add Profile Failure: Invalid Profile XML.
I've found some Windows 7 topics regarding this issue, pointing at the encoded Subscriber and ICC id's in these XML files. I have already found the unencoded values with
netsh mbn show ready * and added them to the XML file, but still no dice :-(
This is my XML file:
<?xml version="1.0"?><MBNProfile xmlns="http://www.microsoft.com/networking/WWAN/profile/v1">
<Name>My Company Name</Name>
<IsDefault>true</IsDefault>
<ProfileCreationType>UserProvisioned</ProfileCreationType>
<SubscriberID>123451234512345</SubscriberID>
<SimIccID>1234123412341234567</SimIccID>
<HomeProviderName>vodafone NL</HomeProviderName>
<ConnectionMode>auto-home</ConnectionMode>
<Context>
<AccessString>custom.provider.nl</AccessString>
<UserLogonCred>
<UserName>username</UserName>
<Password>p4ssw0rd</Password>
</UserLogonCred>
<Compression>DISABLE</Compression>
<AuthProtocol>NONE</AuthProtocol>
</Context>
<DisplayProviderName xmlns="http://www.microsoft.com/networking/WWAN/profile/v2">My Company Name</DisplayProviderName>
</MBNProfile>
I've removed all existing mobile broadband profiles from the system, netsh mbn show profiles
shows an empty list so it's not a naming issue. I tried removing the XML version header from the file (a lot of examples of these XML files don't have it), leaving the Subscriber and/or ICC ID empty, removed them from the XML file but nothing seems to
work.
Does anyone have some other suggestions?Hi,
I'm sorry for have no idea with your problem. Since those methods you tried but failed, in my opinion, it would be better to use Process Monitor to capture the trace of excuting this XML file.
Start Process Monitor, close as much unrelated process as possible, then run command to enable this XML file.
After error occures, stop capture.
Process Monitor:http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx
Roger Lu
TechNet Community Support -
No Error, No Data When Using XML Source in Data Flow Task
Hi! I want to transfer XML Source to SQL DB. The SSIS version is 2008 and I use inline schema. The package works fine without error but there's no input records in the destination.
Execution without error and no record counts.
Here is my XML (generated by C# Web Service Project), can you help me find out what the problem is .
<?xml version="1.0" encoding="utf-16"?>
<DataTable>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="dt_fuzzy" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="dt_fuzzy">
<xs:complexType>
<xs:sequence>
<xs:element name="ACCNT_NAME_SUGGEST" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="_Similarity" type="xs:float" minOccurs="0" />
<xs:element name="_Confidence" type="xs:float" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<DocumentElement>
<dt_fuzzy diffgr:id="dt_fuzzy1" msdata:rowOrder="0">
<ACCNT_NAME_SUGGEST>AIRMES</ACCNT_NAME_SUGGEST>
<_Similarity>1</_Similarity>
<_Confidence>1</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy2" msdata:rowOrder="1">
<ACCNT_NAME_SUGGEST>SIRMET</ACCNT_NAME_SUGGEST>
<_Similarity>0.6214263</_Similarity>
<_Confidence>0.03890347</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy3" msdata:rowOrder="2">
<ACCNT_NAME_SUGGEST>SIRMEL</ACCNT_NAME_SUGGEST>
<_Similarity>0.6190274</_Similarity>
<_Confidence>0.03705673</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy4" msdata:rowOrder="3">
<ACCNT_NAME_SUGGEST>GRUPO AIRMET GESTION COMERCIAL, S.L.</ACCNT_NAME_SUGGEST>
<_Similarity>0.483897179</_Similarity>
<_Confidence>0.000368847366</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy5" msdata:rowOrder="4">
<ACCNT_NAME_SUGGEST>FIRME INFORMATIQUE</ACCNT_NAME_SUGGEST>
<_Similarity>0.4699396</_Similarity>
<_Confidence>0.000164090918</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy6" msdata:rowOrder="5">
<ACCNT_NAME_SUGGEST>STEFAN HIRMER</ACCNT_NAME_SUGGEST>
<_Similarity>0.434566617</_Similarity>
<_Confidence>1.28168531E-05</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy7" msdata:rowOrder="6">
<ACCNT_NAME_SUGGEST>Sirmet</ACCNT_NAME_SUGGEST>
<_Similarity>0.4278418</_Similarity>
<_Confidence>7.149945E-06</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy8" msdata:rowOrder="7">
<ACCNT_NAME_SUGGEST>FIRME ARQUITECTOS,S.L.P.</ACCNT_NAME_SUGGEST>
<_Similarity>0.328356117</_Similarity>
<_Confidence>1.35651484E-12</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy9" msdata:rowOrder="8">
<ACCNT_NAME_SUGGEST>Tirme S.A.</ACCNT_NAME_SUGGEST>
<_Similarity>0.3022916</_Similarity>
<_Confidence>4.76196153E-16</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy10" msdata:rowOrder="9">
<ACCNT_NAME_SUGGEST>OEUVRE DES JEUNES INFIRMES</ACCNT_NAME_SUGGEST>
<_Similarity>0.261523962</_Similarity>
<_Confidence>1.31722347E-24</_Confidence>
</dt_fuzzy>
</DocumentElement>
</diffgr:diffgram>
</DataTable>I think problem is your namespaces are different.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
How to make xml validation with automatic error fixed
Hi', i have some string which i want to validate it:
String word = "<style>body {background-color:transparent}";
byte[] bytes = word.getBytes();
InputStream inputStream = new ByteArrayInputStream(bytes);
DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
docBuilderFactory.setValidating(true);
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
DOcument doc = docBuilder.parse(inputStream);This code will produce some exception like this:
Warning: validation was turned on but an org.xml.sax.ErrorHandler was not set, which is probably not what is desired. Parser will use a default ErrorHandler to print the first 10 errors. Please call the setErrorHandler method to fix this.
Error: URI = "null", Line = "1", : Document root element "style", must match DOCTYPE root "null".
Error: URI = "null", Line = "1", : Document is invalid: no grammar found.
org.xml.sax.SAXParseException: XML document structures must start and end within the same entity.Is there anyway to make this validation not only show the errors but automatic fix it?
Thanks a lot...I mean there is no general method which is capable of correcting all possible errors found by schema validation.
For example if the validation says it expected to find an <organization> element or a <company> element but it found a <banana> element, there is no way to determine what repair is necessary.
Anyway the requirement is fighting against the way things work in the real world. The purpose of validation is just to find out whether a document matches a schema. If it doesn't, then too bad. Send it back to be fixed or replaced. If you are having a problem because you repeatedly get documents which don't quite match your schema, then you need to train the users to produce valid documents or to give them tools which help them do that. -
hi
i am trying to parse a document and change a specific text value within an element althouh when i run the program it changes the nodes text however when i check the xml file it doesnt show the changes it remains the same the code that i am using is as follow iwould be greatful if any one culd help:
// ReplaceText.java
// Reads intro.xml and replaces a text node.
// Java core packages
import java.io.*;
// Java extension packages
import javax.xml.parsers.*;
import javax.xml.parsers.*;
import javax.xml.transform.*;
import javax.xml.transform.stream.*;
import javax.xml.transform.dom.*;
// third-party libraries
import org.xml.sax.*;
import org.w3c.dom.*;
public class ReplaceText {
private Document document;
public ReplaceText()
// parse document, find/replace element, output result
try {
// obtain default parser
DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
// set parser as validating
factory.setValidating( true );
// obtain object that builds Documents
DocumentBuilder builder = factory.newDocumentBuilder();
// set error handler for validation errors
builder.setErrorHandler( new MyErrorHandler() );
System.err.println( "reading" );
// obtain document object from XML document
File f = new File("D:/Documents and Settings/Administrator/Desktop/xml adv java bk/appC/intro.xml");
System.err.println( "reading" );
document = builder.parse(f);
//document = builder.parse( new File( "intro.xml" ) );
System.err.println( "reading document" );
// retrieve the root node
Node root = document.getDocumentElement();
if ( root.getNodeType() == Node.ELEMENT_NODE ) {
Element myMessageNode = ( Element ) root;
NodeList messageNodes =
myMessageNode.getElementsByTagName( "message5" );
if ( messageNodes.getLength() != 0 ) {
Node message = messageNodes.item( 0 );
System.out.println("iiiii");
// create text node
Text newText = document.createTextNode(
"New Changed Message!!" );
// get old text node
Text oldText =
( Text ) message.getChildNodes().item( 0 );
// replace text
//message.removeChild(oldText);
message.replaceChild( newText, oldText );
// output Document object
// create DOMSource for source XML document
Source xmlSource = new DOMSource( document );
// create StreamResult for transformation result
Result result = new StreamResult( System.out );
// create TransformerFactory
TransformerFactory transformerFactory =
TransformerFactory.newInstance();
// create Transformer for transformation
Transformer transformer =
transformerFactory.newTransformer();
transformer.setOutputProperty( OutputKeys.INDENT, "yes" );
transformer.setOutputProperty( OutputKeys.STANDALONE, "yes" );
// transform and deliver content to client
transformer.transform( xmlSource, result );
// handle exception creating DocumentBuilder
catch ( ParserConfigurationException parserException ) {
parserException.printStackTrace();
// handle exception parsing Document
catch ( SAXException saxException ) {
saxException.printStackTrace();
// handle exception reading/writing data
catch ( IOException ioException ) {
ioException.printStackTrace();
System.exit( 1 );
// handle exception creating TransformerFactory
catch (
TransformerFactoryConfigurationError factoryError ) {
System.err.println( "Error while creating " +
"TransformerFactory" );
factoryError.printStackTrace();
// handle exception transforming document
catch ( TransformerException transformerError ) {
System.err.println( "Error transforming document" );
transformerError.printStackTrace();
public static void main( String args[] )
ReplaceText replace = new ReplaceText();
}the xml file that i am using is as follows:
<?xml version = "1.0"?>
<!-- Fig. 28.10 : intro.xml -->
<!-- Simple introduction to XML markup -->
<!DOCTYPE myMessage [
<!ELEMENT myMessage (message, message5)>
<!ELEMENT message (#PCDATA)>
<!ELEMENT message5 (#PCDATA)>
]>
<myMessage>
<message>welcome to the xml shhhhhushu</message>
<message5>welcome to the xml shhhhhushu</message5>
</myMessage>i would be greatful if some one could please help.....See if the Text 'oldText' actually has any text within it. Sometimes in DOM parsing, you will get something like:
Element
Text (blank)
Text (actual)
Text (blank)Whereas you would expect to receive:
Element
Text (actual)See if that is the case. If yes, modify your logic to iterate through the child text nodes until one with actual text inside of it (getNodeValue()) is found.
- Saish -
Can't use UTF-16 encoding with XML Parser for Java v2.
This is my XML Document:
<?xml version="1.0" encoding="UTF-16" ?>
<Content>
<Title>Documento de Prueba de gestin de contenidos.</Title>
<Creator>Roberto P rez Lita</Creator>
</Content>
This is the way in which i parse de document:
DOMParser parser=new DOMParser();
parser.setPreserveWhitespace(true);
parser.setErrorStream(System.err);
parser.setValidationMode(false);
parser.showWarnings(true);
parser.parse(
new FileInputStream(new File("PruebaA3Ingles.xml")));
I've got this error:
XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
I am using the XML Parser for Java v2_0_2_5 and I am a little
confused because the documentation says that the UTF-16 encoding
is supported in this version of the Parser.
Does anybody know how can I parse documents containing spanish
accents?
Thanks in advance.
Roberto P rez.
nullOracle just uploaded a new release of V2 Parser. It should
support UTF-16.
Yet, other utilities still have some problems with UTF-16
encoding. Seems we just
have to wait this one out.
BTW, I'm trying to use Japanese. We, also, have some problems
with JServer.
Roberto P rez (guest) wrote:
: This is my XML Document:
: <?xml version="1.0" encoding="UTF-16" ?>
: <Content>
: <Title>Documento de Prueba de gestin de contenidos.</Title>
: <Creator>Roberto P rez Lita</Creator>
: </Content>
: This is the way in which i parse de document:
: DOMParser parser=new DOMParser();
: parser.setPreserveWhitespace(true);
: parser.setErrorStream(System.err);
: parser.setValidationMode(false);
: parser.showWarnings(true);
: parser.parse(
: new FileInputStream(new File("PruebaA3Ingles.xml")));
: I've got this error:
: XML-0231 : (Error) Encoding 'UTF-16' is not currently supported.
: I am using the XML Parser for Java v2_0_2_5 and I am a little
: confused because the documentation says that the UTF-16
encoding
: is supported in this version of the Parser.
: Does anybody know how can I parse documents containing spanish
: accents?
: Thanks in advance.
: Roberto P rez.
null
Maybe you are looking for
-
I tried uninstalling my itunes thinking it was perhaps a conflict with the previous version, now I don't have itunes on my pc at all!! Reading a previous post for this problem, I attempted to uninstall the 6 individual programs from within control pa
-
How to handle NUMBER data type of SQL
Hello All, I have to call an Oracle store procedure developed by 3rd party, it has once of the input parameter as NUMBER. Since NUMBER SQL data type is not support by PI 7.0 (http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/7b72b2fde93673e10000000a1
-
How do I "save as" in adobe reader?
Hi everyone, Can anyone demonstrate how to "save as" in adobe reader? By filling a blank form I'd like to save the filled out form with a new name and leave the origenal blank as it was to be used again? Thanks. Jocabus
-
IPod is really dead...
I've had my iPod for almost two years and its been working swell, I let a friend of mine borrow it, she ended up dropping it on cement, but I was able to get a replacement screen for cheap and it looked almost new (still had that "tiny" bump") It als
-
CS6 unable to un-install an extension
I wanted to upgrade a Dreamweaver Extension to a newer version. (Extension: WebAssist Databridge on Windows Vista - Dreamweaver CS6 in CS6 Design Premium) First I tried to uninstall the existing version (v.1.1.2) using Extension Manager. After waiti