hi friends,for the below xml code i need to develop a xsl-fo style sheet,in the xml i have mixture of text and line tag so i created xsl-fo for line as shown below,what i need is i need to generate the xsl-fo for text similar to line
***************XML*****************************
-->
<text transform="matrix(0.984 0 0 0.93 183.51...
Hey guys,
I'm trying to parse an xml file to return a item with a specific id only, but having trouble
making it work.
here's what I have in php
$xml_str = file_get_contents("test.xml");
$xml = simplexml_load_string($xml_str);
$albid = $_GET['id'];
$nodes = $xml->xpath('//library/book[@id=1]');
foreach($nodes as $node) {
echo $node[...
I am trying to parse the contents of http://feeds.feedburner.com/riabiz using XDocument.Parse(string) (because it gets cached in a DB.)
However, it keeps failing with the below stack trace when it tries to resolve some URIs in that XML.
I don't care about validation or any of that XML nonsense, I just want the structure parsed. How can...
Hello,
I am using Castor for XML Binding.. We need to sort the XML based on two different fields. Is there way we can specify the sort order in castor while marshalling?
Which will be a better approach to do this sorting, if castor don't have this feature.
Here is the actual problem with Sorting...
I have two collections of two diffe...
I have a PHP script that caches a remote XML file. I want to XSL transform it before caching, but don't know how to do this:
<?php
// Set this to your link Id
$linkId = "0oiy8Plr697u3puyJy9VTUWfPrCEvEgJR";
// Set this to a directory that has write permissions
// for this script
$cacheDir = "temp/";
$cachetime = 1...
I got this from a Soap client request:
Exception: SoapFault exception:
[soap:Client] Server was unable to
read request. ---> There is an error
in XML document (2, 273). ---> The
string '2010-5-24' is not a valid
AllXsd value. in /path/filinet.php:21
Stack trace: #0 [internal function]:
SoapClient->__call('SubIdDetailsBy...
The idea for my project is : retrieve announcements from my website to my iPhone app (using XML file),then I want to make the users of my app can select any announcement he want and click button in ActionSheet which moves the selected announcement to "favorite announcements tableview" (have Database for favorite announcements)
"as apple ...
I am trying to wrap my brain around using LINQ as a means of working with XML data and I'm having a problem figuring out the best way to select elements into a strongly-typed collection. I'm sure there's some minute detail I'm missing, but I can't seem to see it.
Here is a sample of my XML File:
<users>
<User>
<Use...
I am stuck.
Given this XML:
<matrix>
<row>
<column>0.51</column>
<column>0.52</column>
<column>0.53</column>
<column>0.54</column>
</row>
<row>
<column>0.61</column>
<column>0.62</column>
<column>0.63</column>
<column>0.64</column>
</row>
I am trying to define a DataGrid such that the row nodes will...
I originally posted a question about why did the elements of my webservice return not want to deserialize. I found that the WSDL.exe interpretation of my message was not working correctly. Here's what I changed:
[return: XmlElement( "RequestResult" )]
public errorObject[] InitiateRequest(string[] params, string responseURL, stri...
I have the following XML :
<LOCALCELL_V18 ID = "0x2d100000">
<MXPWR ID = "0x3d1003a0">100</MXPWR>
</LOCALCELL_V18>
<LOCALCELL_V18 ID = "0x2d140000">
<MXPWR ID = "0x3d1403a0">200</MXPWR>
</LOCALCELL_V18>
<LOCALCELL_V18 ID = "0x2d180000">
<MXPWR ID = "0x3d1803a0">300</MXPWR>
</LOCALCELL_V18>
I want to get the inner text o...
Okay, so this is sort of a hack...but it may have to be. I'm writing an app in XNA, which from my research into this problem apparently doesn't support XML version 1.1. I'm reading in the contents of an ePub document, and one of the newer books contains its content directory as a version 1.1 XML document. This causes my program to crash....
Reading online about this topic is confusing. Is there a way to cut around the history, politics and technicalities to answer the question: Which standard should I refer to when I write code to generate feeds?
I want to use UTF-8 encoding, which may affect the choice. Otherwise I'm most interested in compatibility with a decent range of...
Hi, I have the following xml file:
<?xml version="1.0" encoding="UTF-8"?>
<c1>
<c2 id="0001" n="CM" urlget="/at/CsM" urle="/E/login.jsp">
</c2>
<c2 id="0002" n="C2M" urlget="/a2t/CsM" urle="/E2/login.jsp">
</c2>
</c1>
I'm trying to load c2's attributes this way:
Document d =
DocumentBuilderFactory.newInstance()
.newDocumentB...
I have an XML document based on a Schema that uses the xs:group element to bunch elements together.
The result is an entity
where name, address and phone number are defined in a group.
This fails Schema validation in MS (Visual Studio) as well as XERCES (oXygen XML editor)
Is there a workaround?
...
Dear all,
i've a dictonary " dictSample " which contains
1 data1
2 data2
3 data3
4 data4
and an xml file"sample.xml" in the form of:
<node>
<element id="1" value="val1"/>
<element id="2" value="val2"/>
<element id="3" value="val3"/>
<element id="4" value="val4"/>
<element id="5" value="val5"/>
<element id="6" value="val6"/>
<...
I have a movie collection catalogue with local links to folders and files for an easy access. Recently I reorganaized my entire hard disk space and I need to update the links and I'm trying to do that automatically with Perl.
I can export the data in a XML file and import it again. I can extract the new filepaths with the use of File::...
Hi ,
I am saving a xml document object and it is saved in a xml file as shown below .
<author name="tom" book="Fun-II"/>
<author name="jack" book="Live-I"/>
<author name="pete" book="Code-I"/>
<author name="jack" book="Live-II"/>
<author name="pete" book="Code-II"/>
<author name="tom" book="Fun-I"/>
instead i want to sort the conten...
I'm currently parsing an XML file using REXML and trying to come up with a way of inserting an XML fragment from an internal file.
Currently, I'm using some logic like the following:
doc.elements.each('//include') do |element|
handleInclude( element )
end
def handleInclude( element )
if filename = element.attributes['file']
...
Problem
I have a YQL query result that I'm trying to get converted and sort into a clean XML file.
Background
Being the pains that they are, information from the World Cup isn't freely available in an easy to reuse format.
So, after a bit of finessing with YQL I have managed to liberate the required table rows which contain the data ...