Share on Google+Share on Google+

Bimalesh
xml and xsd
0 Answer(s)      6 years and 9 months ago
Posted in : XML
<or:AddMACRequest
xmlns="urn:uk.org.telcob2b/tML/BT-Order-v15-0"
xmlns:or="urn:com.openreach.Fulfilment2-v15-0"


xmlns:utcc="urn:uk.org.telcob2b/tML/ukt-CommonComponents-v15-0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:com.openreach.Fulfilment2-v15-0 ../../Schemas/Application/Fulfilment2-v15-0.xsd
urn:uk.org.telcob2b/tML/ukt-CommonComponents-v15-0 ../../Schemas/Application/ukt-CommonComponents-v15-0.xsd
urn:uk.org.telcob2b/tML/BT-Order-v15-0 ../../Schemas/telcoB2Bdoc/BT-Order-v15-0.xsd">


<Order>
<BuyersID>50007812</BuyersID>
<utcc:IssueDateTime>2005-03-09T17:05:59</utcc:IssueDateTime>
<utcc:BuyerParty>
<utcc:Party>
<utcc:PartyIdentification>
<utcc:ID identificationSchemeName="DUNS">131620343</utcc:ID>
</utcc:PartyIdentification>
<utcc:Contact>
<utcc:Name>Mrs Jo Bloggs</utcc:Name>
<utcc:Telephone>01473614235</utcc:Telephone>
<utcc:ElectronicMail>[email protected]</utcc:ElectronicMail>
</utcc:Contact>
</utcc:Party>

======================================================================
how to use xmlns? i have all xsds but i don't know how to use.i want to use in my local system and validate xml..kindly reply soon.if possible pls post a java program to validate it..
======================================================================
i am using program


import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import java.io.*;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;


public class Test {

public static void main(String[] args) {
try {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(true);
factory.setNamespaceAware(true);
factory.setAttribute("http://java.sun.com/xml/jaxp/properties/schemaLanguage", "http://www.w3.org/2001/XMLSchema");

DocumentBuilder builder = factory.newDocumentBuilder();
builder.setErrorHandler(new SimpleErrorHandler());
builder.parse(new InputSource("AddMACRequest - FTTP.xml"));
} catch (ParserConfigurationException e) {
e.printStackTrace();
} catch (SAXException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
}
}
=================
error:-cvc-elt.1: Cannot find the declaration of element 'or:AddMACRequest'.

Ads

View Answers









Related Tutorials/Questions & Answers:
xml and xsd - XML
xml and xsd   50007812 2005-03-09T17:05:59... to use.i want to use in my local system and validate xml..kindly reply soon.if...); factory.setAttribute("http://java.sun.com/xml/jaxp/properties
How to generate XML from XSD?
How to generate XML from XSD?  Hi Experts, I have a xsd with me. I want to generate XML files based on the XSD with fields filled out from the database tables. Please Help me out
Advertisements
were to start with xml, XSD and java
were to start with xml, XSD and java  where to start with XML, XSD... and manipulate the received messages that XML xsd formated, could any one please tell me where to start with this, since I'm a java developer but never working with xml
XSD Simple Elements
XSD Simple Elements       XML Schemas define the elements of  XML files.  XML  simple... the text can be of many different types. It can be among the types included in the XML
XSD Creation. - WebSevices
XSD Creation.  When I try to generate xsd from java object. It is generating XSD file finely. But the problem is it isgenerating XSD file elements in alphabetical order. can u please sujest me how can we do that one. I tried
XML - XML
XML XSD validation in java  Can anyone help in writing validation for XML XSD in Java
Create xsd files from database tables
Create xsd files from database tables  Hi, I work on a Java JEE project. We have now introduced the creation of DTOs from xsd files with JAXB. At the moment we write the xsd files representing a database table structure by hand
java with xml
java with xml  Hi i am reading xml data with sax parser in java. ok its fine. But in future xsd and xml will change. now my question is if xsd and XML will change my java progrm will not change. is it possible ? Thanks
java with xml
java with xml  Hi i am reading xml data with sax parser in java. ok its fine. But in future xsd and xml will change. now my question is if xsd and XML will change my java progrm will not change. is it possible ? Thanks
splitting large xml file. - XML
splitting large xml file.  Hi, I have a large xml file(1G) and a schema (XSD) i need to split this xml to small xml files (~20M) that will be valid by the schema
XML
XML  How i remove a tag from xml and update it in my xml
XML to XML Mapping
XML to XML Mapping  Hi Dear Developer Team, I would like to know how does XML-to-XML and XML-to-database Mapping works? I do not want use any... it by myself. I thought, I use XSD, what i have already extracted from Source
xml
xml  validate student login using xml for library management system
xml
xml  validate student login using xml for library management system
xml
xml  why the content written in xml is more secure
xml
xml  what is name space,xml scema give an example for each   XML Namespaces provide a method to avoid element name conflicts.They are used for providing uniquely named elements and attributes in an XML document
XML
XML  create flat file with 20 records. Read the records using xml parser and show required details
XML
XML  please tell me how i remove one tag out of all similar type of tags in xml
xml
xml  how can i remove white space and next line when i copy stream to xml file
XML
XML  Hi...... Please tel me about that Aren't XML, SGML, and HTML all the same thing? Thanks
xml
xml  what is xml   Extensible Markup Language (XML... that is both human-readable and machine-readable. It is defined in the XML 1.0... gratis open standards. The design goals of XML emphasize simplicity, generality
xml
xml  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language
XML
XML  Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language
java and xml - XML
java and xml   test_final_1 2009-025T13:23:45 B2B I want to validate each tag.. and i don't have any xsd.. kindly help me to solve...://www.roseindia.net/xml/dom/DOMValidateDTD.shtml Thanks
Generate xml
Generate xml  hi can i generate xml file with xsd using JAXP in java. if possible please send java code. Thanks.   Please visit the following link: http://www.roseindia.net/xml/creating-xml-tree.shtml
XML - XML
XML  What is specific definatio of XML? Tell us about marits and demarits of XML? use of XML? How we can use of XML?  Hi, XML... language much like HTML used to describe data. In XML, tags are not predefined
XML - XML
XML  How to run XML program?  Hi Friend, Please visit the following links: http://www.roseindia.net/xml/ http://www.roseindia.net/xml/dom/ Hope that it will be helpful for you. Thanks
XML - XML
XML  How to convert database to XML file?   Hi Friend, Do you want to store database data into xml file ? Please clarify this. Thanks
xml - XML
friend, XPath : It is a language for finding information in an XML document. It is used to navigate through elements and attributes in an XML document. It is a language for selecting nodes from an XML document. It is used
xml - XML
xml  how to match to xml file?can you give example with java code
xml - XML
xml  hi convert xml document to xml string.i am using below code... = stw.toString(); after i am getting xml string result, like Successxxx profile... Friend, Please visit the following link: http://www.roseindia.net/xml/reading
Tutorials   
Java Spring Hibernate Struts Training were to start with xml, XSD and java write a program that Implement an integrated COM client server to add two numbers.by visuall studio 2010 Building a Parent Child relationship XML how i connect two page xml question struts cfg file for DispatchAction with mysql db Creating custom output using XMLUnit - MatchTracker duplicates the output data Related to XML Related to XML Reading child of child nodes in xml Reading multiple xml files Spliting Large XML and one by one Moved to Output Folder XMl and Java web services project download xml file from website using java code Download how to create an xml file in following clear format Conditional increment in xslt Conditional increment in xslt Conditional increment in xslt HOW TO STORE MULTIPLE EMPLOYEE DETAILS TO XML FILE USING JSP? xml and servlets xml and servlets Question about parsing XML document with DOM in JAVA. Removal of XML header Converting PHP page with flash to JSP page without flash saving data in xml Doubt about Xstream Converter Reading xml file using dom parser in java with out using getelementby tag name xml dynamically how to change attiribute values in xml XML Schema xml xml sax parser for xml parsing xml using sax xml to html via java i want java code for this xml file...please show me.. SAX Parser for huge XML file xml parsing "opening video data error" in j2me XML to JSP mapview1 mapview searchbar searchbar jsonparsing xmlparsing retrieve multiple attribute values retrieve multiple attribute values

Ads

 
Advertisement null

Ads