Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa XML xml and xsd
Login         

View Questions and Answers by Category

Advertisements


 
Have Programming Question? Ask it here!
 
 
 


Bimalesh
xml and xsd
0 Answer(s)      4 years and 5 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>Jo.Bloggs@dotnet.com</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'.

Advertisement
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
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
xml - XML
xml  define parser and xml,in jaxp api how to up load parsers... then the program contains syntax errors. XML is defined as an extensible... information,Examples and Tutorials on Xml visit to : http
 

 

 

DMCA.com