xml

Fast search within XML files in a shared folder

I need to design a windows application that will reside within an organization's intranet. The application will be deployed on a user's machine and the user will be generating output within an XML file that has a predefined schema. This XML will be written out to a networked folder that will be accessible by other users. These files are ...

Easiest way to read this XML

I'm trying to loop through this XML to get specifically to the count fields. What's the most efficient way to do this? I don't mind using libraries as long as they don't require root access to install since I'm on shared hosting. Is using libraries supposed to be a better practice or the opposite? <category> <name>Category 1</name> ...

How to output {name} in xml of scala, not convert it?

val name = "mike" val xml = <name>{name}</name> xml will be <name>mike</name> But what if I want the xml be <name>{name}</name>, not convert the {name}? ...

Reading XML in Java

Hi guys, I guess this question of mine is pretty basic but since Ive never done it before or havent come across anything good on the internet while i searched for this, here goes ... I have an XML that I want my java code to read. The sample of the XML would be as follows -- <getLabel labelId="BLAH"> <dataObject name="packageInfo"> ...

UITextView: How to set '\n' from an XML-loaded string?

I need to indicated a 'new line' in a string in an XML file I'm loading. If I hard code the string: myTextView.text = [NSString stringWithString:@"Line1 \nLine2 \nLine3"]; It displays: Line1 Line2 Line3 (as expected) But if I put the exact string in my XML file: <someNode string="Line1 \nLine2 \nLine3" /> And then load it in...

Lock on XDocument.Save for multiple ASP.NET pages

Is it possible to use a lock on one xml file that can potentially be written to from multiple aspx pages at the same time? I'm asking because MSDN suggest that the lock statement should be used with a private static object instance as the expression, and since there are multiple pages involved i guess i can't use the same object on all t...

Working with very huge XML file in C#

I have this very huge XML file of size 2.8GB. This is Polish Wikipedia's articles dump. The size of this file is very problematic for me. The task is to search this file for some big amount of data. All I have are titles of the articles. I thought that I could sort that titles and use one linear loop through the file. Idea is not so bad,...

Serialize XML (via IXmlSerializable) to XmlDocument

I'm trying to write an XmlDocument from an instance of a class to pass to BizTalk (2006 R2, if it matters). I'm implementing IXmlSerializable because I believe it'll give me the most flexibility (this object won't necessarilly always be written to an XmlDocument and passed to BizTalk). So, I have implemented IXmlSerializable, and now I...

reading xml: can xpath read 2 fields?

I'm using SimpleXMLElement and xpath to try and read the <subcategory><name> from the xml at the very bottom. This code works.. but the stuff inside the while loop looks a little messy, and now I also want to get the <subcategory><count> and somehow pair it with its appropriate <subcategory><name>. $names = $xml->xpath('/theroot/categor...

Need advice for XMLText usage in C#

I am writing an output module to visualize my data on another program. If you inspect the code, i add point coordinates to a string and then add this string as a TextNode to another element. Problem is number of points can be more than 500000 Is there a better way to write a lot of text to xml or is this OK? XMLElement points = doc.Cr...

How do I XML-encode a string in Erlang?

I have a erlang string which may contain characters like & " < and so on: 1> Unenc = "string & \"stuff\" <". ok Is there a Erlang function somewhere that parses the string and encodes all the needed HTML/XML entities, such as: 2> Enc = xmlencode(Unenc). "string &amp; &quot;stuff&quot; &lt;". ? My use case is for relatively short s...

Ideas on how to handle a javascript widget?

My friend has a search engine that he wants to have a widget access that can be put on other web pages. If I send a request to the search engine, it returns an XML file. The request would look something like this: http://www.site.com/page.php?keyword=this+is+a+sample&amp;page=1&amp;num_days=3&amp;source_id=site2.com&amp;source_name=s...

How do I make a stub XML file from a schema using Python

I want to create a stub xml file from a schema ... what packages are the best to use for this? x ...

jira SOAP and XMLRPC

I was wondering if there are urls for the various calls that can be made to jira. get issues, get users. what format are they in xml? json? I want to write a wrapper class in python. I see the SOAP api exsists but no methods definitions in python anywhere I can find. I found the java one fairly easy. Your help is appreciated. Please a...

Regex: remove line breaks from parts of string (PHP)

I want to remove all the line breaks and carriage returns from an XML file so all tags fit on one line each. XML Source example: <resources> <resource> <id>001</id> <name>Resource name 1</name> <desc>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas nibh magna, fermentum et pretium vel, malesuada sit amet ...

No code completion in XML code within fully qualified tag

Why does code within a fully qualified tag lack auto-completion in Eclipse? For example, within the following code (where the comment is) nothing I type is provided auto completion for member names / tag names. <android.gesture.GestureOverlayView android:id="@+id/gesturePage01" android:layout_width="fill_parent" android:layout...

How to paste xml tag in this forum?

Hi All, I have a doubt in pasting xml tag here. How to do that? ...

How can I reuse this Android button?

I have a Button that I am using 13 times in my Android application's main.xml file. I would like to have the XML for it defined once, so that I can make changes in one place instead of 13. Each of the 13 instances needs to have its own ID, though. What should I do to simplify my XML? I've tried using <include> but it hasn't worked for me...

What regex to use for replacing lines in a xml file

I have a large number of records of the following type, which I have to modify I would like to remove the created_by="29" line without leaving a space. Note: A wild card inside the created_by value would be preferable I would like to remove the entire line creation_date="..." and the /> greater should move after state="1"/> Insert a ne...

XSLT processing problem with asp specific code

I have asp file with code below: <html> <head> <link rel="stylesheet" href="<%=bb_style%>"/> <title>asdf</title> </head> I need to include title from this file into another asp file formed by xslt transformation. I use this code: <xsl:value-of select="document(content)/html/head/title"/> But I have nothing ret...