Questions tagged [xml]

A simple, very flexible text format that stands for eXtensible Markup Language.

Wikipedia has a great description about XML. Here is a quote about it:

XML (Extensible Markup Language) is a set of rules for encoding documents in both human-readable and machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards.

Extensible - XML is extensible. It lets you define your own tags.

Markup - The most attractive feature of XML has to be its ability to allow its user to create their own tags. The tags that can be created will be similar to tags in HTML. But with XML you are afforded the opportunity to define your own tags.

Language - XML is a language that is very similar to HTML. But it’s much more flexible because it allows to create custom tags. In this way XML acts like a meta-language: a language that allows us to create or define other languages. For example, with XML we can create other languages, such as RSS.

Another site is StackOverflow, with questions using tag XML.

426 questions
7
votes
2 answers

How to sort XML elements in-place?

I'm trying to version control IntelliJ IDEA configuration files. Here's a small sample:
l0b0
  • 51,350
4
votes
1 answer

How can I setup ~/.tidyrc file for XML?

How do you configure tidy to parse XML instead of HTML? Explanation: A while ago, a co-worker showed me a trick to use tidy to clean up XML. Apparently, you create a tidyrc file like so: input-xml: yes quiet: yes indent: yes indent-attributes:…
spuder
  • 18,053
4
votes
3 answers

Using sed to replace one character with another within an xml tag

I need to replace the character S with T in: S1 E12 The result I expect: T1 E12 I don't know how Git works in depth, I'm just using it to replace that…
Diego
  • 43
4
votes
4 answers

How to check well-formedness of 4GB XML file?

I want to check well-formedness of a big XML file. (about 4GB.) However, when I try xmlwf, all it tells me is filename.xml: Value too large for defined data type What to do with it? Is there any other way to check it? (I am using debian linux and…
Karel Bílek
  • 1,951
2
votes
1 answer

How to change values in XML file

I have an XML file like below. I want change the values at is-required place and default-value place of each argument name using a shell script.. where argument name=protocol then is-required = "true" and default-value=tcp, where argument name…
2
votes
3 answers

Update of XML value with xmlstarlet

I have file config.xml: App title Dummy…
2
votes
1 answer

Parsing an xml RSS feed file

What I would like to achieve is to receive an email with the failures of my VPS. I tried to do that by downloading an rss feed XML file from my VPS provider which contains all the failures, down states etc. of their servers. Once I downloaded it, I…
giovi321
  • 847
1
vote
1 answer

Extracting text from an xml file

If I have an xml file containing entries like this foo
humbug
  • 21
1
vote
1 answer

xml_grep exclude element that contains an element

I'm trying to remove all elements from an XML file that contain a certain other element. Here's a very simplified version of what I'm trying to do. Suppose I have the XML file
1
vote
2 answers

Extracting data from tags in XML resultset

I need to fetch data for 2 tags "estimated" and "fullSign" for all the occurences on this result set. RESULT SET:
Sunnx
  • 13
  • 2
1
vote
2 answers

How to remove nodes from a HUGE (>2gb) XML file?

I'm working with several huge (>2gb) XML files and their size is causing problems. (My application uses XMLReader in a PHP script to parse smaller ~500mb files, and that works fine, but XMLReader won't open these large files.) So - my idea is to…
1
vote
1 answer

XML modify and writing to file beautiful soup

I am using python beautiful soup to parse an XML file and write it to a different file after deletion of certain tags. But, using soup.prettify changes other XML namespaces and attribute names. f =…
Akhitha
  • 43
  • 1
  • 2
  • 6
0
votes
1 answer

extract block from XML with different ending tags (... vs )

Given an XML with some blocks ending within the same tag and others with a separate tag:
Will1v
  • 13
0
votes
3 answers

find text between > < for a given variable and change text to something else

If I search file eg. file.xml for s_webdomain I will get: hostname https://hostname:4450
AUser
  • 3
0
votes
3 answers

I need a bash script that replaces every number between two arrows in a file with a 0

the name of the file is types.xml and lists hundreds of different items. this is what it looks like: 50 28800 0
1
2