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



Home Answers Viewqa XML xml and xsd

Have Programming Question? Ask it here!
 
 
 


Bimalesh
xml and xsd
0 Answer(s)      4 years 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
xml - XML
xml  hi convert xml file to xml string in java ,after getting the xml string result and how to load xml string result? this my problem pls help..."); FileOutputStream output = new FileOutputStream("new.xml"); ReadXML xml = new
XML - XML
XML  Write a program using SAX that will count the number of occurrences of each element type in an XML document and display them. The document file...)); System.out.print("Enter XML file name:"); String xmlFile = bf.readLine
Consolidated XML to individual XML - XML
Consolidated XML to individual XML  How to separate the consolidated XML file to separate the individual XML names, when a user import the consolidated XML file
XSD Attributes
XSD Attributes      ... of the attribute. XML Schema has a lot of built-in data types. The most common...:time Example: Here is an XML element with an attribute
XML Schema
(XSD). In this section, you will learn how to read and create XML Schemas, why...XML Schema           Introduction to XML Schema XML Schema is a W3C Standard
Creating XMl file - XML
Creating XMl file   I went on this page: http://www.roseindia.net/xml/dom/createblankdomdocument.shtml and it shows me how to create an XML file, however there is something I don't understand. I have to create an XML file
xml certification dumps - XML
xml certification dumps  hi need information. xml certification purpose dumps
xml code - XML
xml code  I Read xml is used to store and transfer data can you explain it with sample code
snmp /xml gateway - XML
snmp /xml gateway  hi i would like to develop a snmp management application based on xml for that i need to construct a snmp/xml gateway which translates the xml queries into snmp command and inturn translates the returned
xml_append - XML
xml_append  hi i have a xml file im.xml its contents: asaddasahellojim i have to add more tags to .. pls help me to solve this.. ...://www.roseindia.net/xml/ Thanks
Create XMl dynamically - XML
Create XMl dynamically  Hi I am retreiving the list from database which i need to display in an XML file with some nodes How can I do
tags in xml - XML
tags in xml  Can I use : (colon )in xml tag? For ex. Is this valid?  Hi Friend, You can use colon(:) in XML tag.But is not valid. Thanks
xml problem - XML
xml problem  URGENT>>>>> how to retrieve data from hash tables without a JDBC connection?????? Thanks & Regards SAIBHARGAV146
XML with JSP - XML
XML with JSP  Hai all,, I have a doubt..is it possible to submit jsp form data in to xml... i mean after filling the HTML form when i give submit it should save all the content in xml instead of DB. Then i want to fetch all
Reg XML - XML
Reg XML  How can I become an XML programmer?What are the channels I possess on INTERNET Thanks & Regards Ravi Pullela  Hi, XML... information". XML is a W3C Recommendations. It stands for Extensible Markup Language
xml developing - XML
xml developing  I want to develop XML document with following DTD file with XML format. I have also XSL file as a externatl file to represent my xml... "leaf" element according to DTD. In my xml file there are more than 500
xml developing - XML
xml developing  I want to develop XML document with following DTD file with XML format. I have also XSL file as a externatl file to represent my xml... "leaf" element according to DTD. In my xml file there are more than 500
xml or database - XML
xml or database  If I implement some web applications, which is a better way to retrieve and parse xml file directly using DOM or storing those xml files in Database and retrieve. My xml files will be about 100 - 200 and each
XML Schema
: #FFFFFF; } XML Schema An XML Schema defines how to structure an XML document and it can be used in place of DTD. XML Schema is based on XML. XML Schema language is known as XML Schema Definition (XSD). The Purpose of XML Schema
Advertisements
 

 

 

DMCA.com