I want to manipulate xml doc having default namespace but no prefix. Is there a way to use xpath without namespace uri just as if there is no namespace?
I believe it should be possible if we set namespaceAware property of documentBuilderFactory to false. But in my case it is not working.
Is my understanding is incorrect or I am doing som...
How can I edit a xml file using JQGrid? I am using ASP.Net MVC 3.5 with C#. Is it possible to return a JSon object from controller method for this purpose?
...
Hello,
I'm writing classes which (de)serialize to/from XML. When serializing and deserializing, the class gets a XPathNavigator to get data from/add data to.
Because the class may contain objects which are need to be serialized too (using the same mechanism), I do the following to add a child element for each object:
public void Seria...
The script below work perfectly in IE for the XML respond. But seems i cant figured out how to run on Firefox or Chorme. Try few modification but still not able to run it. Kindly need assistant.
<script type="text/javascript" language="javascript">
var xmlhttp;
var timeStamp;
var currentTime = new Date()
var month = currentTime.getMo...
so I want to parse an xml and display (in a UITableView) the "subjects" in ascending order depending on "lessons"
XML:
<parfumeo_kkn>
<tt_timetable>
<id>1015</id>
<day>1</day>
<class_id>98</class_id>
<lesson>9</lesson>
<teacher>bt</teacher>
<room>V1.2</room>
<subject>M</subject>
<pr_id>54</pr_id>
</tt_ti...
Hello,
I am working on layout in android XML in which I would like to set a buttons height to match it's width when setup to fill parent. Obviously this number will change based on screen size, so I cannot use a set pixel size. Can someone help me with getting the button width based on screen size and then passing that to the height s...
so I have three text view elements within a relative layout container. @+id/name,@+id/message,@+id/time
the @+id/message is positioned by layout to right of @+id/name and @+id/time is to the right of @+id/message, it renders fine as long as the three elements dont take up the width of the screen but when it does it bunches up the last e...
I have an XML file that gets bulkloaded into a database. now at the top of the xml there is a doctype newfile.
<!DOCTYPE NEWFILE SYSTEM "XXX_OUT_1234_YYMMDD_00.dtd">
What i'd like to know is what it is used for and if it is needed there at all. The data gets loaded into SQL with a C# bulk uploader, using a schema and the filename (i p...
Hi all,
The question is about JAXB Map marshalling - there is plenty of examples on how to marhsall a Map into a structure like follows:
<map>
<entry>
<key> KEY </key>
<value> VALUE </value>
</entry>
<entry>
<key> KEY2 </key>
<value> VALUE2 </value>
</entry>
<entry>
...
</map>
In fact, this is natively su...
Hi folks,
Here is my problem.
I have some products name stored in the rows of my line view (retrieved from db). I would like to add a checkbox in a column so that the user could select some products he would like (and then update the db).
Could someone please tell me how to do that in xml?
Thank you.
PS:Yes i am a newbie
...
hello,I'm a beginner in c#,i want to parse the follows xml use XmlTextReader as a example,then put the content
of xml to the stringbuilder,as" Novel+hardcover+1+Margatet+....+1+SqlServer".Which kind and warmhearted man can help me,thanks, i serach http://www.codeproject.com/KB/cs/xml_parsing.aspx ,
http://www.codeproject.com/info/sear...
Hello...
i want to add a item to a Sharepoint 2010 custom List over WebService.
I can read data but i can't write.
i test this code, i had no Error but no new item is in the List:
XElement batch = new XElement("Batch",
"<Batch OnError=\"Continue\">"
+ "<Method ID=\"1\" Cmd=\"New\">"
+ ...
I have a string variable, containing XML data and I was wondering if there is an easy way to extract fields and data from the file. Through an iterative generic way, without specifying name of the tags in the code.
...
If I have a source file like this:
<animal name="fred_monkey" />
<animal name="jim_banana" />
<animal name="joe_monkey" />
Can I do an XPATH expression in my stylesheet which selects only the animals with the string '_monkey' in their name?
e.g. wildcard match '*_monkey' ?
...
Hello,
I have written a little library. Now I want to let the user configure the lib with a xml file just like in spring. I have a xsd file to validate the xml config and therefore I have a few questions. Is it possible to achive this spring like configuration with a noNamespaceSchemaLocation? Where should I put the xsd in the lib in ord...
Let's say I need to extract all solid-brushes and linear-gradient brushes in a dictionary resource file using C#. How can I do it? Please help!
This question can be extended to be more general like "How to find the multiple-lines match(es) when searching a file using C#?"
...
hi,
i'm using firebug and i was wondering:
is there a way in firebug to display server-responses in xml-data in a formatted way which is easier to read? maybe as treeview?
thanks
...
Hi Guys,
I am working on an application, in which i will be receiving data in HashMap.
Every "value" in hasmap needs to be formatted based on XML Key tables. For example-
suppose HashMap has following values-
TxnDate = "15-Oct-2010"
cardType = "MC"
The XML table is something like this-
<Param name="TxnDate" input="dd-Mon-yyyy" out...
I can see in dom4j library a number of classes with Flyweight prefix: FlyweightAttribute, FlyweightComment, FlyweightText etc. Here is what java doc is saying in the case of FlyweightText:
FlyweightText is a Flyweight pattern implementation of a singly linked, read-only XML Text. This node could be shared across documents and elements ...
I have something like the following xml that I need to deserialize (note I cannot change the XML):
<Root>
<Products>
<Product>1</Product>
<Product>2</Product>
<Product>3</Product>
</Products>
</Root>
Here is how I am trying to deserialize it:
[XmlRoot("Root")]
public class ProductsResponse
{
[XmlEleme...