Huddled Masses
You can do more than breathe for free...
Browse: Home / Xml

Xml

A DSL for XML in PowerShell: New-XDocument

By Joel 'Jaykul' Bennett on 04-Mar-2010

In July of last year I wrote a PowerShell script with the goal of allowing me to generate XML from PowerShell with a simple markup that would look a little like the resulting XML ... this week I was using that script again, and had a couple of issues that made me go back and [...]

Posted in Huddled | Tagged Atom, DSL, Generator, PowerShell, Scripting, Xml | 7 Responses

Ignoring Namespaces in XPath

By Joel 'Jaykul' Bennett on 05-Dec-2009

I know that I just wrote a post last week about XPath and namespaces in PowerShell, but at the time I left out one possible way of dealing with namespaces, because it’s not the right way of doing things. However, sometimes it’s nice to have options, and when you’re working on the command-line in PowerShell, [...]

Posted in Huddled | Tagged PowerShell, Xml, XPath, Xsl, Xslt

XPath and Namespaces in PowerShell

By Joel 'Jaykul' Bennett on 25-Nov-2009

Although there are a few “CSS Selector” libraries, most browsers haven’t even implemented CSS3 selectors, never mind frameworks like .Net or scripting languages like Javascript or PowerShell so XPath remains the most powerful way to deal with finding specific data in an XML file, and by extension, XHTML and even HTML files (if you can [...]

Posted in Huddled | Tagged .Net, Namespace, PowerShell, Xml, XPath | 2 Responses

Get-Web (Another round of wget for PowerShell)

By Joel 'Jaykul' Bennett on 01-May-2008

Well, after multiple attempts at a wget PowerShell script (the last one works very well for downloading web pages, files, as long as you don’t need to send post parameters or anything like that) ... I found myself writing a script last week that included a custom HTTP POST function as well as using some [...]

Posted in Huddled | Tagged Get-Web, Http, HttpWebRequest, PowerShell, REST, Scripting, Web, wGet, Xml | 1 Response

Convert-Xml with XSLT in PowerShell

By Joel 'Jaykul' Bennett on 18-Dec-2007

Just a quick post to upload a simple PowerShell script that transforms XML files with XSL files. There’s actually a cmdlet in PowerShell Community Extensions which does this, but believe it or not, in all my tests the script outperforms the cmdlet (the cmdlet takes, on average, 117ms on a file which takes the script [...]

Posted in Huddled | Tagged PowerShell, Scripting, Xml, Xsl, Xslt | 2 Responses

Converting HTML to XML in PowerShell

By Joel 'Jaykul' Bennett on 16-Nov-2007

I’ll write up more information later, but a couple people have asked for this in #PowerShell on irc.freenode.net, and I had it already written, so here you go … my ConvertFrom-Html cmdlet (in a Huddled.HtmlSnapin). It converts HTML to valid xml using the SGML Parser which was available on GotDotNet years ago. It only works [...]

Posted in Huddled | Tagged Cmdlet, Converting, Development, Html, Parsing, PowerShell, Scripting, Xml | 1 Response

Lijit Search

Tags

.Net .Net 2008 Scripting Games Automation Bugs Design Development Funny Gadgets GeoShell GUI Huddled Masses Internet licensing Microsoft Modules My Software News Personal PInvoke Pipeline Politics PoshCode PoshConsole PowerBoots PowerShell PowerShell Functions PowerTips Rants Recommender Repository Scripting ShowUI Software Solutions Textile Tips User Group UserInterface WalkThrough WebHosting Windows 7 WordPress WPF Xml

About Huddled Masses

This is web site is dedicated to the musings of Joel Bennett (aka Jaykul) about technology, software, software development, the web, and the world.

Any resemblance of the views expressed and the views of my employer, my terminal, or the view out my window are purely coincidental. The resemblance between them and my own views is non-deterministic. The question of the existence of views in the absence of anyone to hold them is left as an exercise for the reader.

P.S.: I occasionally link to things I think are great. When I do, I occasionally find a "referral code" so I can make a little cash. I promise that I don't link to anything just because of that cash (I wouldn't cross the street for the amount of cash those links bring in, never mind write a whole blog post) ... but I do not promise that things I link to will stay great as time passes, nor that you will agree with me about their greatness!

Archives

  • January 2012
  • October 2011
  • August 2011
  • July 2011
  • June 2011
  • March 2011
  • February 2011
  • January 2011
  • November 2010
  • August 2010

Copyright © 2012 Joel Bennett.

Powered by WordPress and Hybrid.