I've followed a simple example to load an xml file into a table using 'httprequest'. I know my way around code, but this is my first time coding a webpage in 6 years, a 'quicky temp replacement' for a small business website catalog. I'm a hapless newbie once again.
The below code worked fine with a sample xml file I made (one with only two records), but when I exported the full file from a database it only returned one line in the table (the xml files have the exact same structure, only more entries).
Also, when using this in Firefox it never stops loading. And eventhough there is a clause to make it work with IE, it doesn't.
Any help is appreciated, even if it is a complete alternative way of tackling this ... rather basic thing ...
else // Internet Explorer 5/6
I was wondering if there is some standards regarding the data transfers in xml format to be followed by Business-to-Business applications?
By Business-to-Business I mean, the process of consuming one web-service by any other business application.
My actual requirement is to host a webservice which will provide the data available in a .net DataSet variable in XML format, so we were looking for some industry standard specifications regarding the data in xml format?
Yes there are XML standards which are followed when you are sending/recieving XML data. Although they depend on the kind of industry you are working on. I would suggest to search "[your indusrty domain] xml standards". I am sure it would give you a lot of useful results.
50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!
I am trying to store the xml data into the SQL database. The xml data that is am getting is through the xml file. I upload the xml file. When i click update, it should get updated into the database. Can anyone give me some ideas on how to do this.
I am newbie to xml, i am writing xml file using xmlTextWriter Class of System.Xml namespace. i am able to write the contents in to an xml file but the problem here is that i want to embed images in to xml file. right now i am using
but this will give u the link but i want to embed images directly in to xml file
I am trying to use XQuery on XML data and elaborated samples are few on the web. I only find small tutorials for beginners.
Here is the query specification :
> it's a list of "vehicle";
> each "vehicle" has "flags" nodes;
> each "vehicle" is identified by a unique numeric "id" attribute;
> I want to find the lowest id verifying a list of flags ;
In my web application(devloped using spring framework and purely java) i have to tranform the xml data (I am getting xml from 3rd party) into the RDBMS table records of my application. Structure of both XML and table is different so its not one to one mapping. Can anybody please tell me what's the best way to do that?
If you have spaces in element names or in attribute names, then what you have **IS NOT XML**. XML doesn't allow spaces in element or attribute names. See the specification for names[^] (which is used for element and attribute names) in the XML spec.
So therefore, your question can only be answered logically with this statement: get rid of the spaces form your attribute names.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
Given the xml snippet below, I am trying to read the Company value. I have other code which will obtain the Network Policy Zone and the Default Gateway of a given system. Using these two values, zone first, then dfgw, I need to get the Company value which correspondes so it can be set as an environment variable in a remote windows system.
Here's my mess of code, and I'm afraid it is a mess because I've been trying different things:
Dim attrValue, child1, child2, gChild1
WScript.Echo "Zone is: " & zone
Set xDoc = CreateObject("Microsoft.XMLDOM") 'CreateObject("Msxml.DOMDocument") CreateObject("Microsoft.XMLDOM")
xDoc.async = False
xDoc.load ("company.xml") 'Load XML document
Set Root = xDoc.documentElement
Set NodeList = Root.getElementsByTagName(zone)
Set child1 = xDoc.documentElement.firstChild
Set child2 = child1.nextSibling
Set gChild1 = child1.firstChild
Do Until attrValue <> dfgw
attrValue = xDoc.GetAttrValue("DFGW")
WScript.Echo("DFGW Attribute Value is: " & attrValue)
company = gChild1.nodeValue("Company")
WScript.Echo("Company Attribute Value is: " & attrValue)
'Set ElemList = xDoc.getElementsByTagName("Zone0")
'dfgw = ElemList.item(0).getAttribute("DFGW")
WScript.Echo("Default Gateway: " & dfgw)
'company = "BMC Software, Inc."