I am working with Linq to Xml to manipulate openXml documents. More precisely I am trying to read and write to the documents custom properties. I am currently having a problem appending a prefix onto an XElement. My code looks like:
Dim main as XNameSpace = "http://schemas.openxmlformats.org/officeDocument/2006/custom-properties"
Di...
do you know any sample or real application whose data are beyond simple entities? I need something complex, more or less a mirror of a relational database into xml.
Making sharper my idea, I'm looking for an XmlDataProvider or an implementation of Repository Pattern only for Xml (hierchical) data. Let's say a translation of Implementing...
Hi
I have a class that I want to serialize to xml.
The class looks like the following
[XmlRoot("clubMember")]
public class Person
{
[XmlElement("memberName")]
public string Name {get; set;}
[XmlArray("memberPoints")]
[XmlArrayItem("point")]
public List<Int32> ClubPoints {get; set;}
}
When I serialize the above cla...
Hi friends,
I have an xml source for daily currency
http://www.tcmb.gov.tr/kurlar/today.xml
and i need to make a currency optional search for a portal. how can I get a specific data and convert from xml source? :/
i have a search form with:
price input
currency list box (euro, dollar)
and I need to convert the value from form for...
Im using this function simplexml_load_string() in my file which is doing search lucene based.
But its not working in php4.
please suggest me a function similar to this one so that i dont have to change my coding much.
this is the sample of my code :-
function handleResponse($data)
{
if ($data)
{
$xml = simplexml_...
Hey guys,
I have a WPF application which tightly coupled to linq2sql through WCF. It now turns out the Customer would like some sort of Offline mode using an xml file structure.
Lets say I have a Customers Table, Each Customer would have many Orders, with each order only belonging to one customer, so In my table design I would have a f...
Hi,
I am having an issue whereby a column within a table of mine has data which is encoded using the System.Xml.XmlConvert.Encode method.
Now I need to manipulate this data within SQL and have not found a way to duplicate the System.Xml.XmlConvert.Decode method.
So I've been investigating how I can use the System.XML namespace within S...
I'm writing an app that, at its heart, uses a hierarchical tree of nodes
in XML, it looks like this:
<node>
<name>Node1</name>
<Attribute1>Something</Attribute1>
<Attribute2>SomethingElse</Attribute2>
<child>Node2</child>
<child>Node4</child>
<child>Node7</child>
</node>
And so on (all child elements must refer to a...
I came across a legacy XSD that has a bunch of lines like...
<xs:element minOccurs="1"
maxOccurs="1"
default="true"
name="Ready" type="xs:boolean" />
...where minOccurs and maxOccurrs both equal 1, AND there is a default value. Is there any benefit to having the default attr...
Here is the thing that I am trying to accomplish:
In broader sense, parse the XML data using a SAX parser and insert it into the appropriate database column in a MySQL table.
Here is sample Books.xml
<?xml version="1.0" encoding="UTF-8"?>
<!--Sample XML file generated by XMLSpy v2009 sp1 (http://www.altova.com)-->
<bks:books xsi...
Edit:
I want to know suppose if there's another way to upload the xml content without passing it as a POST parameter. is this possible?
I currently have a client app that manipulates an xml file, then wants to upload its content back to the server, If I uploaded back as a get/post string in an ajax call, is there a limitation as to how...
I'm working with eBay's LMS (Large Merchant Services) and kept running into the error:
org.xml.sax.SAXException:
SimpleDeserializer encountered a child
element, which is NOT expected, in
something it was trying to
deserialize.
After alot of trial and error I traced the problem down. It turns out this works:
<?xml version="...
I'm trying out XStream as a way to quickly serialize objects to Xml or JSON to send over the wire, and deserialize. I do want the XML/JSON to be simple/clean.
It seems to work well, I've added a few aliases, but now I've hit a problem, this code:
println(new XStream.toXML(List(1,2,3)))
produces this XML:
<scala.coloncolon serializa...
Is it possible to perform a transform on multiple input XML files?
It doesn't appear to be possible using XslCompiledTransform, but is there an alternative way of applying an XSLT?
...
I'm working with OSIS (Open Scriptural Information Standard), an XML schema for describing scripture and related text. When I first looked at a sample of the XML I noticed some oddities that I have not seen in XML before. Mainly tags being closed followed by content that would logically belong inside the closed tag. After looking through...
I scratch my head in frustration, but I can't find the answer.
I'm new to Ajax and I'm trying this easy script:
Here's my code:
JAVASCRIPT:
$(document).ready(function(){
$("#toggle_album").click(function () {
$.post('backend/load_album_thumbnails.php', {
text: 'my string',
number: 23
}, function(xml...
I need to pull out all of the "NodeGroup" elements out of an XML file:
<Database>
<Get>
<Data>
<NodeGroups>
<NodeGroup>
<AssociateNode ConnID="6748763_2" />
<AssociateNode ConnID="6748763_1" />
<Data DataType="Capacity">2</Data>
<Name>Alpha</Name>
</NodeGroup>
<...
Hi everyone,
Is there a regex for checking if the xml is well formed ?
Thanks
Edit: If not regex, then is there a good parsing method that i can use in c# that doesnt throw exception. I tried using xmlReader but it didnt work for me.
...
I'm trying to use Muenchian grouping in my XSLT to group matching nodes, but I only want to group within a parent node, not across the entire source XML document.
Given XSLT and XML as follows (apologies for the length of my sample code):
XSLT
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www...
Hello,
I have an issue. I have hierarchical XML data such as:
<Tree>
<Node Text="Stuff" ItemGUID="064a9bf0-0594-47f8-87be-88dd73763c77" >
<Node Text="Food" ItemGUID="326f1f7a-d364-4838-9bdc-ce5fd93f88ca" ItemType="2" />
<Node Text="Wines" ItemGUID="950e3ca3-27a1-41fd-89f3-7a8b08633a9f" />
<Node Text="Flowers" ItemGUID="ce...