Validating generated XML file with DTD
Hello all,
my requirement is to test the XML file with its DTD.
we are creating an XML file, before writing it on the application server , we need to test it with its DTD.
i found one method set_validating in the interface if_ixml_parser , for validating XML file, but not getting an idea how to use it, like how to link the DTD to XML etc.
if i try to use the above method am getting the following error:
Unable to retrieve the external entity 'd:\dtdfile.dtd'.
where 'd:\dtdfile.dtd' is the path of the DTD file included in the Doctype of the XML file.
Please help me to solve this.
Thx in advance.
Hello,
Did you find your answer ?
I know how to validate an XML file an internal DTD, but not an external one... If you know, can you pelase advice ?
If you didn't found yet, you need to use method get_reason() to get the description of the error.
best regards,
Gilles.
Similar Messages
-
i used form2xml in oracle 10 g suit to convert forms 5 .fmb to .xml . using the command:
frmf2xml.bat OVERWRITE=YES myform.fmb
The forms contains arabic character set, but the xml file is generated with character "????????? " , and the xml file is unusable
what can i do to keep arabic characters in the generated xml files.
Edit:
I run form2xml on windows xp SP3 with arabic support (codepage =1256)
The xml file is generated as UTF-8I resolved the problem.
step1: search in the registry for every NLS_Lang key and modify its value to codepage 1256 using regedit
step2: in control panel-Region and Language , I modified language to be Arabic
Now every thing is good -
Generating XML File with Table data...
Hi All,
Bear with me, with my Oracle XML knowledge,,,
we have Oracle 8i ( Relaease 3) as our database, and managegement want to have XML type of Text file, with respect to data in the Customer Table. Expected XML tags would be the Column Names of the Table.
Table has three columns,, Name, Address, Telephone.
So desired XML file looks like below:
<Name>John Hunter</Name><Address> City Road, London</Address><Telephone>1223223</Telephone>
If I deceided to do this task using PL/SQL, how could I start it,,,, All comments are welcome, this is the first time that I am going to generate this type of file ,,,Hi Chandana,
You can check out the DBMS_XMLQUERY package for this purpose. It provides XMLType functionality in Oracle 8i. You can access the documentation for the same at:
http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96612/d_xmlque.htm#ARPLS066
If you happen to have access to Oracle 9i, then you can use XMLType Views provided with XML DB for your requirement.
Thanks
Shefali -
How to generate xml file with multiple nodes using sqlserver as database in SSIS..
Hi ,
I have to generate the xml file using multiple nodes by using ssis and database is sqlserver.
Can some one guide me on to perform this task using script task?
sudhaWhy not use T-SQL for generating XML? You can use FOR XML for that
http://visakhm.blogspot.in/2014/05/t-sql-tips-fun-with-for-xml-path.html
http://visakhm.blogspot.in/2013/12/generating-nested-xml-structures-with.html
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
To read XML file with DTD in SSIS
Hi,
My SISS package needs to read .mak file and store it in a sql tables.
I am receiving xml file content in mak file extension with DTD. So I couldn't read through XML source shows error DTD is prohibited in this document. After removing DTD by manually, the xml file has multiple outputs.
Please guide me how to remove DTD by coding and also I don't have xsd and xsl file for this only mak file.
Thanks.Thanks Visakh for your answer.
I have tried in XML task which described in the thread. But I couldn't remove DTD file, I am getting following error,
[XML Task] Error: An error occurred with the following error message: "Could not find a part of the path 'C:\Program Files (x86)\FAST\Builder\bin\makefile.dtd'.".
As I said before I am receiving in .mak file extension. The beginning of file content is like below,
<?xml version='1.0'?>
<!DOCTYPE makefile SYSTEM "file:///C:/ProgramFiles
(x86)/FAST/Builder/bin/makefile.dtd"[
<!ENTITY % default-content-type "'text/html'">
<!ENTITY prjdir "G:\cdrom\Employees_2014_02">
<!ENTITY imgdir "G:\images\forms\gifs">
<!ENTITY foddir "G:\SOFT\FORMS CD\Feb14">
<!ENTITY ccdir "Y:\Content">
]>
<makefile>
&fsysdse;
<content-collection id="b1" title="Employers and Employees" filename="&ccdir;\Employees_2014_02.nfo" password=""> ....
After replace all variable (prjdir,imgdir,fodder,ccdir) into values specified in the entity tag, I removed above underlined part - so the xml file is ready without DTD part and able to use in
XML source. I have received 6 outputs from XML source.
My question is how to do this manual work in SSIS? It’s not only one file, so many files needs to updated SQL tables automatically so everything should be done by coding.
Please guide me in which way I can achieve this?
If you want to do this in SSIS
one way is to use Script Task to parse the file and remove the DTD part.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Generate XML file with Elements and attributes from Oracle table
Hi,
I have the following table structure.
CREATE TABLE COIL
COIL_ID NUMBER(10),
COIL_NUMBER VARCHAR2(40),
COIL_PO_OPERATING_UNIT VARCHAR2(20),
COIL_PO_NUMBER VARCHAR2(40),
MILL_NUMBER VARCHAR2(2),
MILL_COIL_STATUS VARCHAR2(15),
ITEM_NUMBER VARCHAR2(40),
COIL_WEIGHT NUMBER(38),
WEIGHT_UOM VARCHAR2(10),
DOCUMENT_NUMBER VARCHAR2(40),
DOCUMENT_DATE DATE,
DOCUMENT_STATUS VARCHAR2(15),
DOCUMENT_TYPE VARCHAR2(20),
DOCUMENT_SOURCE VARCHAR2(20),
TEST_ID NUMBER(38),
VALUE NUMBER,
TEST_UOM VARCHAR2(20),
TEST_STATUS VARCHAR2(70),
TESTER_LOGIN VARCHAR2(20),
EQUIPMENT_CODE VARCHAR2(50),
DOC_STS_MSG VARCHAR2(600)
For each COILID record, there could be multiple records baased on TEST_ID/VALUE/TEST_UOM etc.
And I would like to prepare xml file in the following format by selecting data from COIL?
<?xml version="1.0"?>
-<Coil xsi:noNamespaceSchemaLocation="www.tempel.com/COIL.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xdb="http://xmlns.oracle.com/xdb">
<CoilId>1419532</CoilId>
<CoilNo>D2221050010A0</CoilNo>
<CoilPOOperatingUnit>Changzhou</CoilPOOperatingUnit>
<CoilPONo>4619</CoilPONo>
<MillNo>86</MillNo>
<MillCoilStatus>Test</MillCoilStatus>
<ItemNo>050FP800 C5</ItemNo>
<Weight>7076</Weight>
<UOM>KILOGRAM</UOM>
<DocumentNo>0</DocumentNo>
<DocumentDate>2013-01-11</DocumentDate>
<DocumentStatus>NonProcessed</DocumentStatus>
<DocumentType>Tests</DocumentType>
<DocumentSource>CHIGMA1</DocumentSource>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4992" TestUnit="mm" Status="NonProcessed" TestId="135"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.0128" TestUnit="mm" Status="NonProcessed" TestId="124"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="12" TestUnit="mm" Status="NonProcessed" TestId="125"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5095" TestUnit="mm" Status="NonProcessed" TestId="127"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5042" TestUnit="mm" Status="NonProcessed" TestId="128"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5058" TestUnit="mm" Status="NonProcessed" TestId="129"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4967" TestUnit="mm" Status="NonProcessed" TestId="130"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.5049" TestUnit="mm" Status="NonProcessed" TestId="131"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4972" TestUnit="mm" Status="NonProcessed" TestId="132"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4960" TestUnit="mm" Status="NonProcessed" TestId="133"/>
<Tests DocStsMsg="0" EquipmentCode="CHIGMA1" TesterLogin="dpkrueger" Value="0.4996" TestUnit="mm" Status="NonProcessed" TestId="134"/>
</Coil>
Can you please guide me how to do it in a single query?
Thanks in advance.Hi Odie,
Thanks for the quick offer.Sure,No problem.I expect the format to be as follows
<Coil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="www.tempel.com/COIL.xsd">
<CoilId>97239</CoilId>
<CoilNo>777078</CoilNo>
<CoilPOOperatingUnit>TSUSA</CoilPOOperatingUnit>
<CoilPONo>3407</CoilPONo>
<MillNo>31</MillNo>
<MillCoilStatus>Test</MillCoilStatus>
<ItemNo>0140SP150 C5A</ItemNo>
<Weight>17365</Weight>
<UOM>POUNDS</UOM>
<DocumentNo>0</DocumentNo>
<DocumentDate>2008-10-13</DocumentDate>
<DocumentStatus>Processed</DocumentStatus>
<DocumentType>Tests</DocumentType>
<DocumentSource>MILL</DocumentSource>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="84" TestUnit="15T" Status="Processed" TestId="65"></Tests>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="1.39" TestUnit="W/Lb" Status="Processed" TestId="48"></Tests>
<Tests EquipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="1979" TestUnit="W/Lb" Status="Processed" TestId="49"></Tests>
</Coil>
But instead it came with below format
<Coil xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSch
emaLocation="www.tempel.com/COIL.xsd"><CoilId>97239</CoilId><CoilNo>777078</Co
ilNo><CoilPOOperatingUnit>TSUSA</CoilPOOperatingUnit><CoilPONo>3407</CoilPONo>
<MillNo>31</MillNo><MillCoilStatus>Test</MillCoilStatus><ItemNo>0140SP150 C5A<
/ItemNo><Weight>17365</Weight><UOM>POUNDS</UOM><DocumentNo>0</DocumentNo><Docu
mentDate>2008-10-13</DocumentDate><DocumentStatus>Processed</DocumentStatus><Do
cumentType>Tests</DocumentType><DocumentSource>MILL</DocumentSource><Tests Equ
ipmentCode="MILLEDI" TesterLogin="MILLEDI" Value="84" TestUnit="15T" Status="P
rocessed" TestId="65"></Tests><Tests EquipmentCode="MILLEDI" TesterLogin="MILL
EDI" Value="1.39" TestUnit="W/Lb" St atus="Processed" TestId="48"></Tests><Tes
ts EquipmentCode="MILLEDI" TesterLog in="MILLEDI" Value="1979" TestUnit="W/Lb"
Status="Processed" TestId="49"></Tests></Coil>
The sample insert records are as follows
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 65, 84, '15T', 'Processed', 'MILLEDI', 'MILLEDI', null);
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 48, 1.39, 'W/Lb', 'Processed', 'MILLEDI', 'MILLEDI', null);
insert into COIL (coil_id, coil_number, coil_po_operating_unit, coil_po_number, mill_number, mill_coil_status, item_number, coil_weight, weight_uom, document_number, document_date, document_status, document_type, document_source, test_id, value, test_uom, test_status, tester_login, equipment_code, doc_sts_msg)
values (97239, '777078', 'USA', '3407', '31', 'Test', '0140SP150 C5A', 17365, 'POUNDS', '0', to_date('13-10-2008', 'dd-mm-yyyy'), 'Processed', 'Tests', 'MILL', 49, 1979, 'W/Lb', 'Processed', 'MILLEDI', 'MILLEDI', null);
commit;
Thanks in Advance. -
Dear all,
I developed an application using NetBeans which lets you create XML files.
The process of creating the new XML file, set the attribute Doctype of these files to the DTD (fileXML.dtd) present in the build / classes / Dtd that is loaded during implementation through:
URL url=ClassLoader.getSystemClassLoader().getResource("Dtd/fileXML.dtd");so the attribute Doctype XML files created will have the location of the DTD fileXML.dtd:
<?xml version="1.0"?>
<!DOCTYPE AGSet SYSTEM "file:/F:/Documents%20and%20Settings/ioXp/Desktop/mioProgramma/build/classes/Dtd/fileXML.dtd">
Well. After completing the development of the program, I created the executable miaApplicazione.jar (in which he was pulled inside your full Buil, including build / dtd) by the option of NetBeans "Build Main Project."
Double-clicking the file miaApplicazione.jar the program runs properly.
The problem now is that when I create the XML file by mioProgramma.jar, they will refer to this DTD within miaApplicazione.jar and consequently when trying to open these files XML message appears:
Protocol specified unknown. Error processing resource "jar:file:/F:/Documents%20and%20Settings/ioXP/...
<?xml version="1.0"?>
<!DOCTYPE AGSet SYSTEM "jar:file:/F:/Documents%20and%20Settings/ioXp/Desktop/miaApplicazione/...
What is the solution for this problem?
Hi
ELVIOHi swanelvis ,
I have the same issue. Were you able to resolve this ?
Thanks -
Validate a XML file with a XSD File in ABAP
Hi everybody,
I am searching a way for validating a XML File with an external XSD File in ABAP. I know to validate with dtd is possible, but what about XSD?
Can you help me in my urgend problem ?
Greetings from Germany
ismail eranyone an idea for my issue ???
-
Generation of Xml file with java output
Hi i m new to xml and java combination. I have a name value pair kind of output returning from java program. I want to generate the new xml file with the data. Could some one help me out in generating xml file with the data. Could anyone send me the java code that does this task.
Let me know which parser are you using currently for reading xml files so that i assist you. For now, you can refer to STAX Parser API under this link
http://java.sun.com/webservices/docs/1.6/tutorial/doc/SJSXP3.html -
Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia.Hello Guru,
could you please help with my issue with Fiori Installation.
We want to install SAP Fiori Front-End (GW+UI) on the Sandbox system with SAP Netweaver 7.3.1. (SP14)
Gateway component (SAP GW CORE 200 SP10) was installed without any problems.
But I need to install UI-add-on (NW UI Extensions v1.0) and when I try to install it via SAINT, transaction said me that I need to generate xml-file for it (as in General notes for UI add-on mentioned).
But I have Solution Manager 7.0.1 and in MOPZ for this version I do not have option "install Add-on" as it written in Guide for ui add-on installation.
Could you please help me with advice how to generate xml-file for UI add-on installation on SolMan v.7.0.1?
If where is no way, but only to upgrade Solution Manager, maybe somebody could give me xml-file for your system (for NW 731) and I will change it to my needs, I will be very grateful!
Thanks in advance for any help!!!
Bets regards,
Natalia. -
We have a SharePoint 2010 Publishing Website that uses variations to deliver contain to multiple languages. We are using a third-party translation company to translate publishing pages. The pages are
exported using the export/import using the UI process described here: "http://blogs.technet.com/b/stefan_gossner/archive/2011/12/02/sharepoint-variations-the-complete-guide-part-16-translation-support.aspx".
Certain sub-sites are extremely content-intensive. They may contain many items in the Pages library as well as lists and other sub-sites.
For some sub-sites (not all), the exported CMP file contains no XML files. There should be a Manifest.XML, Requirements.XML, ExportSettings.XML, etc., but there are none. After renaming the CMP file
to CAB and extracting it, the only files it contains are DAT files.
The only difference I can see between the sub-sites that generate CMP files with no XML files is size. For example, there is one site that is 114 MB that produces a CMP file with no XML files. Small
sites do not have this problem. If size is the problem, then I would think the process would generate an error instead of creating a single CMP file that contains only DAT files. However, I do not know exactly what the Export/Import Process in the UI is doing.
This leads to two questions:
1.
Does anyone know why some CMP files, when renamed to *.CAB and extracted, would not contain the necessary XML files?
2. Second, if exporting using the UI will not work, can I use PowerShell? I have tried the Export-SPWeb, but the Manifest.XML does not contain translatable
content. I have not found any parameters that I can use with Export-SPWeb to cause the exported CMP to be in the same format as the one produced by the Export/Import process in the UI.
As a next step, we could try developing custom code using the Publishing Service, but before doing this, I would like to understand why the Export/Import process in the UI generates a CMP that
contains no XML files.
If no one can answer this question, I would appreciate just some general help on understanding exactly what is happening with the Export/Import Process -- that is, the one that runs when you select
the export or import option in the Site Manager drop down. Understanding what it is actually doing will help us troubleshoot why there are no XML files in certain export CMPs and assist with determining an alternate approach.
Thanks in advance
Kim Ryan, SharePoint Consultant kim.ryan@[no spam]pa-tech.comI wanted to bump this post to see about getting some more responses to your problem. I'm running into the same problem as well. We're running a SharePoint 2010 site and are looking at adding variations now. The two subsites with the most content take a
while to generate the .cmp file (one to two minutes of the browser loading bar spinning waiting on the file). Both files are generated with a lot of .dat files but no .xml files. I was thinking like you that it must be a size issue. Not sure though. Did you
ever happen to find a solution to this problem? -
File Adapter : read XML file with data validation and file rejection ?
Hello,
In order to read a XML file with the file adapter, I have defined a XSD that I have imported to my project.
Now the File Adapter reads the file correctly but it does not give an error when:
- the data types are not valid. Ex: dateTime is expected in a node and a string is provided
- the XML file has invalid attributes.
How can I manage error handling for XML files ?
Should I write my own Java XPath function to validate the file after is processed ? (here is an example for doing this : http://www.experts-exchange.com/Web/Web_Languages/XML/Q_21058568.html)
Thanks.one option is to specify validateXML on the partnerlink (that describes the file adapter endpoint) such as shown here
<partnerLinkBinding name="StarLoanService">
<property name="wsdlLocation"> http://<hostname>:9700/orabpel/default/StarLoan/StarLoan?wsdl</property>
<property name="validateXML">true</property>
</partnerLinkBinding>
hth clemens -
Make a sort with ODI while generating XML File
Hi all,
I made a package whith several interfaces and a treatment.
Each interface targets a table in my XML schema and the final treatment is a CreateXMLFile.
Everything goes well, my XML file is generated :D
Now I'd like to make a sort in an XML element. I know how to order the elements between them but can't find a way to sort a specific element. Excuse my poor english, I'm not really clear...
My XML is built like this :
<root>
<questions>
<question>
<questionnumber>1</questionnumber>
</question>
<question>
<questionnumber>2</questionnumber>
</question>
<questions>
<root>
So my problem is to make the questionnumber ordered.
I tried to modify the IKM SQL Incremental Update to add a ORDER BY in the "Insert new rows" step.
The generated code is executed with success... but in the end, my XML file is not sorted :S
So first question, do you have an idea to be able to view the data in my XML schema tables ? This schema is stored in the memory engine and not in an external base. I ask that because when you try to execute the query "select * from XMLSchema.XMLTable" in the Operator, it appears you get the datas you had when the schema had been reversed. Idem when you try to view the datas in datastore. So first of all I'd like to do this control to be sure my order by is taken into account.
Second question, do you know how the Odi XML driver builds the XML File with the command CreateXMLFile, because I think that my XML table is well sorted but that the CreateXMLFile doesn't repect this order. I checked the driver tutorial but couldn't find any help on that subject.
So if anyone has got an idea to help me, I would appreciate a lot.
Thanks,
ThierryStill searching but without success
-
DTD and XSD Validation for xml file
hi kindly reply to this mail guru'ssss
i am facing a problem in parising a xml file against dtd and xsd.
i have the dtd which contains only enitities that can be present in the xml file and the xsd file for validation against elements and attribute.
when DTD is present then it is throwing errors like the elements should be declared.
when i take out the doctype line and validate against schema its throwing the error that particular entity is not found or declared.
public Vector validateSchema(String SchemaUrl, String XmlDocumentUrl)
SAXParser parser =new SAXParser();
try{
//parser.setNamespaceAware (true);
//parser.s
parser.setFeature("http://xml.org/sax/features/validation",true);
parser.setFeature("http://apache.org/xml/features/validation/schema",true);
parser.setFeature("http://apache.org/xml/features/validation/schema-full-checking", true);
// parser.setProperty("http://xml.org/sax/properties/declaration-handler", new DTDHandl());
parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",SchemaUrl);
// parser.setFeature("http://xml.org/sax/features/namespace-prefixes", true);
// System.out.println(parser.getDTDHandler());
// UnparsedCache cache = new UnparsedCache();
// parser.setDTDHandler(cache);
InputSource inputSource =new InputSource(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));
// parser.setDTDHandler(new myDTDHandler());
//parser.setEntityResolver(new CustomResolver());
// parser.setContentHandler(this);
Validator handler=new Validator();
parser.setErrorHandler(handler);
parser.parse(inputSource);
if(handler.validationError==true)
System.out.println("XML Document is not valid");
else
System.out.println("XML Document is valid");
for(int i=0;i<ErrorLines.size();i++){
System.out.println(ErrorLines.elementAt(i));
}catch(java.io.IOException ioe){
System.out.println("IOException"+ioe.getMessage());
}catch (SAXParseException e) {
System.out.println("SAXParseException "+e.getMessage());
}catch (SAXException e) {
System.out.println("SAXException"+e.getMessage());
return ErrorLines;
what could be soln to this.Hi
Venky_Ferrari.
Based on your description, your case related to XMLXSD, SO I will move your thread to
Data Platform Development > XML, System.Xml, MSXML and XmlLite
forum for better support.
Best regards,
Kristin
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Using servlet to generate XML file
What I want to do is simple but can't work. Hope you guys can give me a hint.
I succesfully generate XML file in command line using Oracle XML parser and class generator. Then I was trying to do it using servlet. it compiles fine but generate NullPointer exception at the line:
Emp e1= new Emp(); //Emp is the root of XML
I suspect the Emp constructor can't correctly find the globalDTD in its superclass -CGDocument. Please note this only happens in servlet setting, not is command line setting. Any suggestion to get arounf this?
Another unrelated question is that when I create a XML file using the Oracle XML parser, it seems all the elements a file has to be added once, otherwise the compiler will compalain about the missing element. this will be inconvinient when I constructing a big XML file, which I 'd liek to split into small piece and add them up. Maybe there is a good way but I just don't know it.
my email: [email protected]Hi,
I'm running into the same problem deploying the classes generated by the class generator. Code works fine from JDeveloper, but had to put my DTD in the directory where my classes are. Deploying the classes with Apache's JServ gives me a NullPointer exception on the first addNode method. I guess it can't find the DTD. I tried to put the DTD in many locations but this didn't fix the problem. Any suggestions?
Steve,
Did you fix this problem? Thanx!
null
Maybe you are looking for
-
In-built camera in Macbook Air with OS X version 10.9.1 is not working
In-built camera in Macbook Air with OS X version 10.9.1 is not working. Can anyone help?
-
I got one of the new iPhone 6s (the smaller version) and it's been working great. I was able to restore an old backup from my 4S and transferred everything over. iTunes recognizes the new phone and I've had no problems bringing files within apps on
-
There is no way to send a test email from ISE for alarm notification. For more information you can see the below link http://www.cisco.com/c/en/us/td/docs/security/ise/1-2/user_guide/ise_user_guide/ise_mnt.html#pgfId-1524784
-
I've been using JNDI to lookup a datasource name sucessfully in a custom security realm, until recently. In certain situations, a recursion happens where JNDI Lookups contact security to do a getUser? This only happens when invoking from a deployed b
-
Looking methods of integration Windchill and SAP systems.
Please advice how Windchill ESI makes synchronization of information (bills of material (BOM), released parts, documents, engineering changes, drawings) with SAP ?