i have a web-page that returns XML with an xsl stylesheet transform, e.g.:
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type='text/xsl' href='/css/homepage.xsl'?>
<MyData>
...
</MyData>
It properly displays the transformed XSL as HTML. But when i try to view the XML source, Internet Explorer gives me the error:
The X...
Hi,
I have an xml resultset which has to be converted using XSL for display into an excel spreadsheet in a vb.net application. The xml resultset has 15 columns (15 properties of client like firstname,lastname,address etc) and I don't want to hardcode the select attribute of xsl/xpath with property or xml element names. I need an XSL tha...
I am using PHP to interact with a Web Service using REST and HTTP GET requests to call on the available APIs to return XML data. When testing via the address bar, I get the expected XML content.
So the next step I tried was to read that XML data or store the values returned into a string. But when I use file_get_contents I don't get a...
Hi,
I have the following xml:
<?xml version="1.0" encoding="UTF-8"?>
<SomeName>
<NodeA>
DataA
</NodeA>
<NodeA>
DataB
</NodeA>
<NodeA>
DataA
</NodeA>
<AnotherNode>
DataA
</AnotherNode>
<AnotherNode>
DataC
</AnotherNode>
<AnotherNode>
DataC
</AnotherNode>
<SingleNode>...
Hi,
All the tutorials that I see online when converting a database table to XML always involves a Data Context. However, I'm using Fluent Nhibernate mappings and therefore I don't want to do this.
Is there a way to say convert an IEnumerable to XML document instead? Or are there any other ways to get data from an Nhibernate mapped data...
I have this hierarchy of XML
<Chapters>
<Chapter @num="">
<Section @letter="">
<Heading @num="" />
</Section>
</Chapter>
</Chapters>
I need to do a sort so that all chapters are sequenced in ascending order, each section within that chapter is sequenced in ascending order, and each heading in that section is sor...
What I'm looking to be able to create is one XSD which would validate both of the following:
<parent>
<mother>
<name>
<firstname>foo</firstname>
<surname> bar </surname>
<maidenname>rab</maidenname>
</name>
</mother>
</parent>
and
<parent>
<father>
<name>
<firstname>foo</firstname>
<surname> bar </surname>
<...
In the XML of a worksheet in an XLSX file (Excel 2007) cell tags that have a "t" attribute equal to "s" are string types. The value tag inside the c needs to be looked up and converted via the sharedStrings document. But, some cells have s="237" and no t attribute at all. The value tag has an integer like 39448 which does not relate ...
I have have a problem loading and accessing data from a value object in my new project.. I load an xml file via a service, which contains title and locations of asset files, I need to be able to access the location of an asset file by specifying the title and retrieiving it from a value object.. I'm using the Robotlegs framework, here's ...
I've written a script to pull data from MongoDB and output seemingly valid XML for sphinx, modeled on the example files in the sphinx distribution. The issue I'm having is that none of the fields are actually being indexed, despite everything appearing as though they should.
This is my config: pastebin.com/p5vMXMZw
This is my (truncated...
How to read the content of this XML?
<Locations>
<Location>4</Location>
</Locations>
I can parse it, and it works, but I can't access the value of Location (4). I'm using:
ZoneCheck *azone;
NSString *url1 = [NSString stringWithFormat:@"%@", azone.location];
...
I've got a requirement to take some XML and transform it into a fixed-width load file for loading to an SAP system. My algorithm works fine except for some weird European characters such as Ã, which, when in a string returns a string length of +1 for each instance of the char. So for example the text Ãbcd would have a string-length($va...
I am writing an XSLT for turning an XML file into a human-readable HTML page.
The XML has several fields to describe some aspects of the data, which contain integers which represent mapped strings. The integers are not the information the user wants, I need to map those integers to the corresponding strings.
The mapped strings are avai...
I'm getting an error after acessing my webservice like:
Server Error in '/' Application.
Type 'System.Xml.XmlDocument' cannot be serialized. Consider marking it with the DataContractAttribute attribute, and marking all of its members you want serialized with the DataMemberAttribute attribute. See the Microsoft .NET Framework documenta...
in my xml file,
i have same tag name used at different place (layer1 and layer2),
how can i differenciate tags named "<tile gid ="int">" from layer1 and layer2 ?
i need to process them differently depending if they belong to layer1 or layer2...
here's a small sample of my parser and my xml file:
// =================
// xml parser samp...
Hi,
[SCENARIO]
The scenario is, there is a requirement to send multiple records through XML file to the server, for insertion in the database. These records consists of multiple master and detail tables data linked together through primary and foreign keys.
Now the client cannot fill the Primary key and foreign key columns/data in thos...
I wonder if this is possible in jaxb2. I have a xml that can be either < element > or < element2 > it will never apear at the some time. They are both of type String and I want it to map to the same property in my java class. Is there a way in jaxb2 to configure that?
Thanks
Charlie
...
Hiya.
Lets say i have the following web page:
<html>
<body>
<div class="transform">
<span>1</span>
</div>
<div class="transform">
<span>2</span>
</div>
<div class="transform">
<span>3</span>
</div>
</body>
</html>
I would like to find all div elements that contain the class transform and to fetch the text in each di...
Hey all
I'm having a go at developing my first android application and have never really used databases before. Anyways I need to populate and update a database based on XML files retrieved from the web on a regular basis (say once a day).
Just thinking about it iv already run into some problems...Basically I need to display informati...
Hi
I'm having trouble with an XSLT to loop through all the rows, and then all the columns in each row element.
So if this is the XML I have:
<root>
<subelement>
<rows>
<row title="Row1">
<column title="A" />
<column title="B" />
</row>
<row title="Row2">
<column title="C" />
<column title="D" />
</row>
</rows>
</subelement>
</...