HOW TO KNOW VALID XML WITH DTD ? WITHOUT PARSING ?
i am creating the xml file
i need to validate the xml with DTD to confirm is it valid or not ?
with out parsing...
could you tell me how ?
Durga
without parsing u cant do it..
Similar Messages
-
Hi,
I have found a piece of code through google, to validate an xml file with an external dtd file. which is
function validateDocument()
xmlDocumentObject = new ActiveXObject("microsoft.XMLDOM")
xmlDocumentObject.onreadystatechange = changeHandler
xmlDocumentObject.load('C:\\My.xml')
function changeHandler()
and for that we need to a import i.e #import "C:\WINDOWS\system32\msxml4.dll"
here when i try to import "msxml4.dll" in Acrobat javascript (js) file, it is giving error, application exits.
How can i import dll in Acrobat javascript to get some functionality, or if not
What someother way to achieve this(To validate xml with dtd file).
This is totally making me crazy, please someone help me on this issue.
thanks in advance.thanks Leonard,
But my problem is i have an xml(i created that using acrobat javascript)and a dtd file, i want validate xml file with that dtd, using acrobat or some other way. How can i validate xml with dtd, please help me. -
Validating XML with DTD ..... Urgent
Hi all,
I am using java 1.4
I have to validate the XML file with the external DTD.
Can anyone give me the code for that.
DTD should be external.
Thanks,
Vinayak.Hello Vinayak,
I'm kind of new to this but I thinik I saw what you're looking for in a program called Echo05 or Echo07 in chapter 5 of http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html.
I think I was working on it Friday and basically you have to have your own DTD then when Echo echo's the output it will throw errors with vaugue messages about how messed up your DTD is.
Regards,
Bill -
Validating XML with PL/SQL parser
How can i validate a xml that is on a buffer with the grammar
stored in a BLOB column of o table? I'm using PL/SQL parser and
i can parse it correctly but i don't know how can i validate it
because my grammar is stored in DB.
nullAna Lucia (guest) wrote:
: How can i validate a xml that is on a buffer with the grammar
: stored in a BLOB column of o table? I'm using PL/SQL parser
and
: i can parse it correctly but i don't know how can i validate
it
: because my grammar is stored in DB.
You can't currently but this will be available in our next
release.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
Validate xml with PL/SQL Parser
Hi,
i have an xml DTD into a VARCHAR2 variable and an xml document
into a CLOB, i'd like to know how to validate the xml with my
DTD using PL/SQL API for xml.
Sorry for my terrible english (i'm not english) :-)
Tank you.Here's an example:
set serveroutput on
DECLARE
p xmlparser.parser;
d xmldom.DOMDocument;
dtd xmldom.DOMDocumentType;
v varchar2(32700);
good clob;
bad clob;
xml_parse_error exception;
pragma exception_init(xml_parse_error,-20100);
BEGIN
bad := '<!DOCTYPE Department SYSTEM "test.dtd"><Deprtment/>';
good := '<!DOCTYPE Department
SYSTEM "test.dtd"><Department/>';
v := '<!ELEMENT Department EMPTY>';
p := xmlparser.newParser;
xmlparser.parseDTDBuffer(p,v,'Department');
xmlparser.setDoctype(p,xmlparser.getDoctype(p));
xmlparser.setValidationMode(p,TRUE);
xmlparser.parseClob(p,good);
xmlparser.parseClob(p,bad);
xmlparser.freeParser (p);
EXCEPTION
WHEN xml_parse_error THEN
DBMS_OUTPUT.PUT_LINE(sqlerrm);
xmlparser.freeParser (p);
END; -
Regarding validating XML against DTD
hello,
In my project I am receiving xml via HTTP post request
and this XML needs to be validated against a DTD in a remote server.
e.g. assume the xml to be
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE PUSH SYSTEM "http:\\whatever:xx\whatever\sms.dtd">
<PUSH ICP="Partenaire" ADM="UtilisateurChezPartenaire" VERSION="1.0">
</PUSH>
the java code uses Xerces parser
DOMParser parser = new DOMParser();
parser.setFeature("http://xml.org/sax/features/validation", true);
parser.setProperty(
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
"http:\\whatever:xx\whatever\sms.dtd"");
parser.parse("c://localcopy/sms.xml");this Works fine.
But in some case I receive xml file without any !DOCTYPE declaration
(but is still needs to be validated against the same DTD as its mentioned in the business rules)
in such case how can the XML be validated against the DTD.
am I extected to add the
<!DOCTYPE PUSH SYSTEM "http:\\whatever:xx\whatever\sms.dtd">
to every XML via some XSLT script or is there a direct way of
validating a xml that has no DOCTYPE reference to a DTD
(the assumption is the DTD location is known beforehand)ok, i managed to solve the problem my self, using Transformer makes the job easier.
here is the code for anyone who might run into the same problem.#
public void whatEver(){
try{
DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
DocumentBuilder dBuilder = dbFactory.newDocumentBuilder();
Document xmlDocument = dBuilder.parse(new FileInputStream("c://a.xml"));
DOMSource source = new DOMSource(xmlDocument);
//StringWriter writer = new StringWriter();
StreamResult result = new StreamResult("c://a.xml");
TransformerFactory tf = TransformerFactory.newInstance();
Transformer transformer = tf.newTransformer();
transformer.setOutputProperty(OutputKeys.DOCTYPE_SYSTEM, "./transformations/Push_Gateway.dtd");
//TransformerFactory transformerFactory = TransformerFactory.newInstance();
//Transformer newtransformer = transformerFactory.newTransformer();
transformer.transform(source, result);
catch(Exception e){
e.printStackTrace();
}the above code reads the a.xml file and adds/removes the DOCTYPE as specified in the transformer.setOutputProperty method and the same xml file is updated, this way different DTD could be referenced by the same xml and validated. this saves the process of adding/removing DOCTYPE via xslt. -
How to use ES bundles (with or without PI)?
Hello Experts,
I am new to this forum and this is my first question
I am currently working in a landscape comprising of ECC 6.0 EHP4 and APO systems. We do not have SAP PI installation.
I wanted to know the right way forward to get SOA enablement.
I understand that Service enablement is two fold (Please correct me if I am wrong):
1) 'Inside out' (from FMs) for which the WS runtime engine of the AS is sufficient. The services thus generated can be consumed directly from other SAP systems (within our landscape only??) or from a frontend app which can conume services (probably a widget developed in .NET with a cool UI).
2) 'Outside In' where services are modeled in PI/ OR standard SAP services (ES bundles) can be used.
My question , more precisely, is if we need SAP NW PI to use these ES bundles from the service marketplace.
If No, the how can it be done?????
If yes, then do the Business objects to which these services are related to also provided along with this content??? And do these business objects correspond the the ones whihc are available in the Business Object Repository in the backend???
Is there any other alternative to getting SOA enabled without actually having to instal SAP Nwtweaver PI??
I am really looking forward to some interesting answers from the experts on this forum.
Thank you well in advance. Regards,
Amith> So, is it right if I say that the services available in the backend are already implemented? And just creating an endpoint for them would make them ready for use?
Yes: kind of instant services
> Also if I consume a service, say, 'CreateSalesOrder_In' for example, will it create entries in all my Sales order relevant tables (VBAK, VBAP) automatically using a BAPI internally?
The service has the task to do all necessary steps, whether with or without using a BAPI.
> Actually, I have these doubts because during my time at SAP Labs (for the composites team in BusinesByDesign), I used to create business objects in the ESR and create an implementation for the same in the backend using BOPF. But now, in the customer scenario, where a full fledged ECC implementation is used, I am unaware as to how the services would update the tables or even read the relevant data.
My consumer view on aservice is that I do not have to know how the service works, just need to know how to call it.
Regards, Boris -
Error validating xml with xsd schema on JSDK 1.4
Hi All,
Asked to me do it a Web Service client in Java and validate its xml answer with an xsd file using 1.4 plataform.
I googled and I saw many samples to 1.5 plataform, and few samples to 1.4, but anyway I tried to do what they asked to me.
I got connect with service, got the response and so I went to validate that xml with an xsd file.
But I got an error on that task. The error occurs in the following line
"Schema schema = factory.getSchema();"
Bellow my code
final String JAXP_SCHEMA_LANGUAGE = "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
final String W3C_XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
final String schemaSource = "C:\\GetAuthorizationServiceOutput.xsd";
final String JAXP_SCHEMA_SOURCE = "http://java.sun.com/xml/jaxp/properties/schemaSource";
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
try {
factory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
factory.setAttribute(JAXP_SCHEMA_SOURCE,new File(source));
catch (IllegalArgumentException x) {
System.out.println(x.getMessage());
DocumentBuilder builder = null;
Document document = null;
try {
builder = factory.newDocumentBuilder();
document = builder.parse(new InputSource(new StringReader(ret.toString())));
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
**Schema schema = factory.getSchema();**
Validator validator = schema.newValidator();
try {
validator.validate(new DOMSource(document));
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
and here is the exception :
Caused by: java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
Method onLinkClicked of interface wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = btBack, page = br.com.weev.finan.mkb_er.extranet.view.relations.RelationsDetails, path = 30:form:btBack.RelationsDetails$4, isVisible = true, isVersioned = true]] threw an exception
wicket.WicketRuntimeException: Method onLinkClicked of interface wicket.markup.html.link.ILinkListener targeted at component [MarkupContainer [Component id = btBack, page = br.com.weev.finan.mkb_er.extranet.view.relations.RelationsDetails, path = 30:form:btBack.RelationsDetails$4, isVisible = true, isVersioned = true]] threw an exception
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:198)
at wicket.request.target.component.listener.ListenerInterfaceRequestTarget.processEvents(ListenerInterfaceRequestTarget.java:74)
at wicket.request.compound.DefaultEventProcessorStrategy.processEvents(DefaultEventProcessorStrategy.java:65)
at wicket.request.compound.AbstractCompoundRequestCycleProcessor.processEvents(AbstractCompoundRequestCycleProcessor.java:57)
at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:896)
at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:929)
at wicket.RequestCycle.step(RequestCycle.java:1010)
at wicket.RequestCycle.steps(RequestCycle.java:1084)
at wicket.RequestCycle.request(RequestCycle.java:454)
at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:534)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.GeneratedMethodAccessor342.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at wicket.RequestListenerInterface.invoke(RequestListenerInterface.java:187)
... 39 more
Caused by: java.lang.NoSuchMethodError: javax.xml.parsers.DocumentBuilderFactory.getSchema()Ljavax/xml/validation/Schema;
at br.com.weev.finan.mkb_er.business.manager.impl.RelationManagerImpl.getAuthorizationService(RelationManagerImpl.java:152)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:296)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:177)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:144)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:166)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy22.getAuthorizationService(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at wicket.proxy.LazyInitProxyFactory$JdkHandler.invoke(LazyInitProxyFactory.java:377)
at wicket.proxy.$Proxy39.getAuthorizationService(Unknown Source)
at br.com.weev.finan.mkb_er.extranet.view.relations.RelationsDetails$4.onClick(RelationsDetails.java:125)
at wicket.markup.html.link.Link.onLinkClicked(Link.java:254)
... 43 more
It's my first time doing that, so I'm confuse to do it.
Thank you
Juliano.This is how.
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.transform.dom.DOMResult;
import javax.xml.transform.dom.DOMSource;
import javax.xml.validation.Schema;
import javax.xml.validation.SchemaFactory;
import javax.xml.validation.Validator;
DocumentBuilderFactory dbfac = DocumentBuilderFactory.newInstance();
dbfac.setNamespaceAware(true);
SchemaFactory factory1 = SchemaFactory
.newInstance("http://www.w3.org/2001/XMLSchema");
Schema schema = factory1.newSchema(new File("person.xsd"));
dbfac.setSchema(schema);
DocumentBuilder dbparser1 = dbfac.newDocumentBuilder();
Document doc1 = dbparser1.parse(new File("person.xml"));
Validator validator1 = schema.newValidator();
DOMSource dm1 = new DOMSource(doc1);
DOMResult domresult1 = new DOMResult();
validator1.validate(dm1, domresult1); -
Parsing XML with DTD residing in jar file
Hi,
I have problems using crimson parser for my program under JDK 1.4.0b2. It attempts to parse an xml file with SAX. The corresponding lies in a jar file in a different directory but reachable through the classpath. All I get is an exception.
org.xml.sax.SAXParseException: Relative URI "my.dtd"; kann nicht ohne eine Dokument-URI aufgel�st werden.
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3121)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3115)
at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2702)
at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2674)
at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1125)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)
at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:326)
I used Xerces before and it worked fine. I already searched the community for that problem. All hints I found assume that xml file and dtd are in the same directory. Setting the systemId of the input source doesn't fix the problem.
Is there anyone out there knowing what to do?
Thanks,
ThorstenUse a Resolver to map a PUBLIC name to a local name:
<!DOCTYPE DOC PUBLIC "-//gaskin.de//XMLDOC 1.0//EN"
"http://www.gaskin.de/dtd/xmldoc.dtd">
public static register() {
ClassLoader loader = Resolver.class.getClassLoader();
registerCatalogEntry(
"-//gaskin.de//XMLDOC 1.0//EN",
"de/gaskin/resources/dtd/XMLDOC.DTD",
loader);
} -
Strange problem when validating XML agains DTD file.
Dear experts,
I'm write a simple code snippet that validates my XML file agains a given DTD.
It allways report the following error:
org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed.
at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)Althought, my xml file is OK with Xmlspy.
My code is:
System.setProperty("javax.xml.parsers.DocumentBuilderFactory",
"org.apache.xerces.jaxp.DocumentBuilderFactoryImpl");
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setNamespaceAware(true);
factory.setValidating(true);
factory.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaLanguage",
"http://www.w3.org/2001/XMLSchema");
factory.setAttribute(
"http://java.sun.com/xml/jaxp/properties/schemaSource", SchemaUrl);
DocumentBuilder builder = factory.newDocumentBuilder();
Validator handler = new Validator();
builder.setErrorHandler(handler);
builder.parse(new java.io.FileInputStream(new java.io.File(XmlDocumentUrl)));And here are the xml file:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE capsule SYSTEM "c:/SampleFiles/capsule.dtd">
<capsule>
<header>
<name>Capsule 1</name>
<author>Author</author>
<company>Company</company>
<last-save-time>Fri Apr 01 14:59:21 GMT+07:00 2005</last-save-time>
<description>description</description>
</header>
<datasets>
<dataset type="input">
<name>dataset1</name>
<description></description>
<columns>
<column type="fromsource">
<name>partno</name>
<data-type>varchar</data-type>
<length>80</length>
<precision/>
<scale/>
<allow-null>false</allow-null>
<default-value/>
</column>
<column type="notfromsource">
<name>balanceonhand</name>
<data-type>integer</data-type>
<length/>
<precision/>
<scale/>
<allow-null>false</allow-null>
<default-value/>
</column>
</columns>
<rule>LET a=update; LET b=employye set salary = 100; print a + b</rule>
<!--output: update employee set salary = 100-->
<command>inmemory (getvalue_dataset("dataset1".rule))</command>
<params>
<param>
<name/>
<type/>
</param>
</params>
</dataset>
</datasets>
</capsule>What I can do now? Change my xml file?
Please provide some hints.
Thanks in advance.I tried to remove the DOCTYPE, but the problem stayed the same.
Thanks. -
How to save as XML with some predefined extensions
hi All,
In my application a template has to be created which should contain field headers and their respective field types - example field header LEVEL and field type COMBO BOX. Purpose is - a table will be created based on the fields in the template. Now I want to save this template as XML file with some predefined extension (like .templ). Later in my application i will retreive the saved template and use it to create table.
How can i save the file as XML with some predefined extension. We are using Swing to create template. Please help me with sample programs to solve this problem.
awaiting for your mail
Thank you
Regards
MKumarIn an other post I found my solution thanks to "Peggy" :
Save As… has returned with Mountain Lion. Hold down the Option/alt key while clicking on the File menu & there it is! It also has a default keyboard shortcut.
Thank you Peggy -
How to know if implementation with a filter value exist for a BAdI in code?
Hi all,
Scenario:
I created a BAdI. There will be a button on the UI to call its implementation(s); while if there is no implementation with specified filter value, this button needs to be hidden. Thus I need to know if the implementation exist before calling it.
Question:
In the ABAP code, how to get whether implementation with specified filter value exists for a BAdI?
If it's possible, please help provide code.
Thanks and regards,
SaidProblem solved:
data: r_badi type ref to YOUR_BADI,
badi_impl_num type i.
get badi r_badi
filters
flt_name = fit_val.
badi_impl_num = cl_badi_query=>number_of_implementations( badi = r_badi ).
if badi_impl_num > 0.
"there are badi implementation(s)
endif. -
How to validate an XML with its XSD in jdk1.4.2_09?
Hi all,
Kindly Tell me how to validate an Xml against an XSD in JDK1.4.2_09....
I was able to do it in jdk1.5 using the Validation class available in java.xml.validation package...
But the Task for me is to do in jdk1.4.2 since my application server runs on jdk1.4.2... changin to jdk1.5 will result in failure of main application...
sample code will be useful...
thanks in advance.
Regards,
Sundararamaprasad.HI,
Thanks for the suggestion.... The Thing is when i compiled and executre my code it really got execute well when i ran it in the Command Prompt after settiongup appropriate classpath and path... but when i executed the same thing in the server it did not get executed though the application server also run on top of the same JDk.....I've check it out..anyhow the link gave me a very good learning...Thanks for the valuable suggestion..... :)
Regards,
Sundararamaprasad. -
Does IE/Firefox browser validate a give XML with DTD
Hi,
The following is my XML with an internal DTD and below that is the css
<?xml version="1.0" ?>
<!DOCTYPE INVENTORY
<!ELEMENT INVENTORY (BOOK)+ >
<!ELEMENT BOOK (NAME,PRICE)>
<!ELEMENT NAME (#PCDATA)>
<!ELEMENT PRICE (#PCDATA)>
<!ELEMENT IMAGE EMPTY>
>
<?xml-stylesheet type="text/css" href="Inventory01.css"?>
<INVENTORY>
<BOOK>
<NAME> 101 Thins to lie </NAME>
<PRICE> 9494.03</PRICE>
<IMAGE> TEST </IMAGE>
</BOOK>
<BOOK>
<NAME> iT nEVER Gets Better </NAME>
<PRICE> 44.43</PRICE>
</BOOK>
</INVENTORY>The following is the CSS file refered above.
BOOK
display:block;
margin-top:12pt;
font-size:10pt
NAME
display:block;
margin-top:12pt;
font-weight:bold;
font-style:italic;
PRICE
display:block;
margin-left:15pt;
}I was expecting the browser to validate my XML and give me an error. Please tell me if the browsers validate XMLs? If yes, is there any issue with the above code.
Thanks.
Regards,
TechnozI was expecting the browser to validate my XML and
give me an error. Please tell me if the browsers
validate XMLs?Try this experiment: Set up an XML that doesn't validate against its internal DTD. Then load it into a browser to see if the browser validates it or not.
Oh wait, didn't you already try that experiment? What did you find out? -
How best to sync xml with db changes?
What is the best way to have changes to the db schema reflected
to the <connection>.xml?
Does this information have to be updated manually?
nullNot automatic is probably good BUT will there be some
method/utility/wizard to sync the XML with a changed schema?
Maybe a diff like editor?
Or are you saying that, after initial generation, all changes to
the database schema will require those changes be propogated to
the XML files by hand?
Having to propogate all changes by hand sounds like a maintenance
nightmare. It also sound like it would require the JDeveloper
programmer to be knowledgeable of and duplicating the efforts of
the DBA's.
R.Parr
Temporal Arts
JDev Team (guest) wrote:
: Giles and Randall,
: In 2.0, the XML files generated by the Infobus Wizard are
: read-only, so the only way to have them pick up changes to your
: schema is to re-generate the form via the Wizard, or as Giles
: says, but re-creating the rowsets.
: In 3.0, things are a little different. The XML file resides in
a
: separate project with your business logic. The XML file is
: editable in 3.0, but JDev does not automatically update the XML
: file based on changes to the schema objects it is based on.
: Laura
: giles (guest) wrote:
: : i've had this problem, the only quick way i see to update the
: : xml file is to re-create your rowsets using the wizards.
: : Randall J. Parr (guest) wrote:
: : : What is the best way to have changes to the db schema
: : reflected
: : : to the <connection>.xml?
: : : Does this information have to be updated manually?
null
Maybe you are looking for
-
How can I save contacts in a local account, NOT in iCloud?
With Maverick I seem to have no longer the choice between saving contacts on my iMac and saving them in the iCloud. Where have all my local contacts gone? I have only one account left, the iCloud.
-
I can no longer see my inbox for texting, only those messages I've sent. How do I get my inbox back?
-
Driver issue after Downgradin​g to Windows 7 (Pavilion 17-f081no)
So,i went to downgrade yesterday,and have had this problem ever since. Nothing works except one USB port at the right side of the laptop (when looked at front),no usb connections,no wireless or wired connection,nothing. They are all dead,including SD
-
Emacs auctex menus empty when not opening file from command line
I have got a problem with emacs/auctex. In a running emacs editor, if I am opening a .tex file out of the editor, the menus "LaTeX", "Command" and "Math" are empty. That is, upon clicking on them, there is no dropdown list: Example: http://img8.image
-
Safari 2.0.4 bug : 130x320 px gap with div a object object a div
If you place the below code in a blank HTML page and view it with Safari 2.0.4, you'll see a 130 pixel vertical gap between 1 and 2, and a 320 pixel horizontal gap between 3 and 5. 1 <div> 2 <a> 3 <object> 4 </object> 5 </a> 6 </div> 7