In VB.net when loading in XML documents using System.Xml.Xmldocument is there a way that I can specify a relative path to the file?
path = "file.xml"
xmld.Load(path)
The XML doc I'm trying to load is in the same directory as the VB class. But I'm having trouble accessing it without using a full path to the XML doc.
...
I'm using FileMaker Pro 9 and I want to take a database with repeating records (e.g. one field is "Lines" and it can have up to 9 strings) and import data into it from an XML file.
Right now, with the following XML file, I only get the first entry imported ("Room"):
<?xml version="1.0" encoding="UTF-8"?>
<FMPXMLRESULT xmlns="http://www...
I'm designing a WCF web service method that can return results either as a raw XML string, or as a structure, depending on the client's preference.
A simple approach is to have two separate methods:
MyStructure GetData();
string GetDataAsXML();
This should work fine, but given that the wire representation in both cases will be the s...
Hi,
Sorry if this seems like an easy question, but I've started pulling hair out on this...
I have a XML file which looks like this...
<VAR VarNum="90">
<option>1</option>
</VAR>
I'm trying to get the VarNum.
So far I've been successful using the follow code to get the other information:
$xml=simplexml_load_file($file);
$option...
Are there any reasons to use XML over properties files for Log4J configuration?
...
I have a script that loads info from external XML file and inserts it into the HTML page on click. Here's the code of this script:
var xmlhttp;
function loadXMLDoc(url,target) {
xmlhttp = null;
if (window.XMLHttpRequest) { // code for all new browsers
xmlhttp = new XMLHttpRequest();
}
else if (window.ActiveXObject) { // code for I...
I'm working on a stored procedure for a calendar application. Each event in the calendar can have several dates. This information is stored in two different tables. Rather than write two stored procedures and call the second one multiple times to save the dates, I'd rather just pass them in using XML. The trouble is that I want to conver...
Fiddler has many useful extensions. However, I can't find one that understands WCF's binary-encoded SOAP envelopes. (Content-Type: application/soap+msbin1)
Suggestions for comparable (non-Fiddler) tools are welcome too.
...
For a XSLT project I could sure use a .xml file that fills the same gap that Northwind fills for database projects. It should be 20-100k, but still have a good amount of data that is easy to recognize. Sorta like Northwind.
What do you use?
...
I have a WCF service that is returning an XElement, this is working fine however I would like it to include the XML Declaration in the response:
<?xml version="1.0" encoding="utf-8"?>
The client side is not something that I can change and is reporting a "Result is not XML" The only other differences between the response of my HTTP re...
I have problem with load XML file in AS3, please see my XML file:
Title 01
songs/production/album/title-01.xml
Title 02
songs/production/album/title-02.xml
I can load it at first time, but I don't how to load XML file in node {file_url}.
Thanks
Flash XML Loader
...
$response = sendRequest($curl, doCreateDB($domainid, $dbname, $dbtype));
$responseXml = parseResponse($response);
function parseResponse($response_string)
{
$xml = new SimpleXMLElement($response_string);
if (!is_a($xml, 'SimpleXMLElement'))
throw new ApiRequestException("Cannot parse server response: {$response_string...
We are searching for an Library which supports the marshalling and unmarshalling like JAX-B in Java, is there any state-of-the-art library to use?
...
Feels like Im about to reinvent the wheel. Im having a message payload (e.g. from a client through a socket) in XML format (in a simple java.lang.String).
Below is an example what the payload could look like:
<update>
<type>newsource</type>
<sources>
<source>vedbyroad box 1492</source>
</sources>
</update>
I want to...
We have an application this takes a text string entered by a user into a web form and packages it in XML. Just to confuse matters a little, the XML is send as the body of on Outlook email message.
Because the users can paste almost anything into the web form (typically from Word), the text string can contain non-ASCII (7 bit) characters...
I have the following XML file:
<SOURCE_SERVER>
<SERVER HOSTNAME="serv1">
<CIFS_SERVICE NETBIOSNAME="serv1"/>
</SERVER>
<SERVER HOSTNAME="serv2">
</SERVER>
<SOURCE_SERVER>
Now, I want to add child <CIFS_SERVICE NETBIOSNAME="serv2"/> to <SERVER HOSTNAME="serv2">. How do I do this using XML::Twig?
...
Guys,
I have a WSDL laying at http://blabalba/bla/myWsdl.wsdl, the WSDL contains one schema that import two schema from schemaLocation="Schema/1.xsd" and schemaLocation="Schema1/2.xsd"
(physically those two lays in blabalba/bla/Schema and blabalba/bla/Schema1).
Using some web utilities I have able to upload the WSDL metadata content int...
Hello,
Our main .NET application uses standard .NET XML config files for storing all the settings. Lets call our app: APPMAIN. As you probably know this means that all default settings are stored in the readonly app.config file. At the moment the application changes a user setting, a new file will be generated (user.config) that contain...
I am looking for a way to implement Google Analytics tracking in my web service.
My app sends and receives XML from the server, so implementing the Google JavaScript tracking stuff is unfortunately no option.
Any other alternatives? Someone must have done this before :-)
...
We are working on a schema for a client, and we want them to be able to review it so that tyey can understand it. They are not "untechnical", but a schema file or large diagram seems very unfriendly for the purposes of someone learning what it contains. Further down the line other developers are going to have to learn to use the schema, ...