BrowserUk has asked for the wisdom of the Perl Monks concerning the following question:
I have a large XML file containing programming api information. Reading it is a pain.
But it is pure XML (not HTML) and thus contains no styling, so I had the notion that if I applied a little styling I could view it in my browser instead of my editor and the <TAG>s would disappear, making it easier to read. The problem is, that much of the salient information is details in tag attributes; and that disappears with the tags once styled. Is there a solution to this that doesn't involve reformatting the whole XML document?
An example of the XML:
<intrinsic tech='MMX' rettype='__m64' name='_m_from_int64'> <type>Integer</type> <CPUID>MMX</CPUID> <category>Convert</category> <parameter varname='a' type='__int64'/> <description>Copy 64-bit integer "a" to "dst".</description> <operation> dst[63:0] := a[63:0] </operation> <instruction name='movq' form='mm, r64'/> <header>mmintrin.h</header> </intrinsic>
Specifically, is there any way to style that so that the rettype and name fields are displayed?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can you style XMLwith CSS to display tag attributes?
by Anonymous Monk on Jun 11, 2015 at 01:40 UTC | |
by BrowserUk (Patriarch) on Jun 11, 2015 at 02:02 UTC | |
by CountZero (Bishop) on Jun 11, 2015 at 06:35 UTC | |
by BrowserUk (Patriarch) on Jun 11, 2015 at 08:13 UTC | |
Re: Can you style XMLwith CSS to display tag attributes?
by RichardK (Parson) on Jun 11, 2015 at 09:20 UTC | |
by BrowserUk (Patriarch) on Jun 11, 2015 at 09:27 UTC | |
by RichardK (Parson) on Jun 11, 2015 at 09:40 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |