Tag Info

Hot answers tagged

7

XML parsing in MS Powershell is easier than any parsing mechanism I've seen in any other language or environment I've personally encountered. Given some XML file (test.xml): <root> <one>I like applesauce</one> <two>You sure bet I do!</two> </root> You can easily access, modify and append nodes, values and ...


7

If there are any core-to-core communications then you'll find that generally a quad-core will be faster, sometimes significantly so, than two dual-cores. The reason is that the bandwidth and/or latency between cores on the same die can often be very much faster than any external connections. That said you don't mention specific processors so you could be ...


6

For reasons unknown, a great many of the (Windows XP SP3) computers I manage have recently started creating a new pseudoprinter object, called Microsoft XPS Document Writer, seemingly out of nowhere. If I read things correctly the original version of XPS Document Writer and related components for Windows XP shipped as part of .NET Framework ...


5

Make sure your string is valid XML (ie add </Event> to the end of what you've posted above, and then cast that string as XML: $xml = [xml]$yourStringHere Then you can pull out the TargetLogonId like this: $xml.Event.SelectSingleNode("//*[@Name='TargetLogonId']") | select -ExpandProperty '#text' Thanks to Shay Levy and this post: ...


4

You asked a similar question last month, and I provided instructions on where to go on HP's Web site to get the tools you needed. Here are exact links: You can get CPQLOCFG.EXE (as suggested by sleske) here. You can get HPLOCFG.EXE (a similar tool) here. You can get sample XML files and the Perl locfg.pl utility here. I suggest also looking over the ...


4

Unfortunately no. That must be a full physical path. As long as you don't plan to change your site path often, a static path shouldn't be a problem. If you change your path often to different site instances you may want to consider using appcmd to script the change so that it gets all subfolders.


4

Two approaches that I use are (a) to canonicalize both XML files and then compare their serializations, and (b) to use the XPath 2.0 deep-equal() function. Both approaches are OK for telling you whether the files are the same, but not very good at telling you where they differ. A commercial tool that specializes in this problem is DeltaXML. If you have ...


3

They are XML-based but still compressed to ZIP files making them binary as far as SharePoint is concerned. Considering that SharePoint doesn't recognise the Office 2007 formats unless you configure them yourself or install the Microsoft Filter Pack, it looks like this feature wasn't ready for SharePoint 2007 RTM.


3

telnet nc (netcat) wget --post-file perl python ruby c java c++ etc I'd probaly look at nc or wget Also you could try googling "send xml to web service" which will get you these to as the first two hits: http://stackoverflow.com/questions/4454918/how-to-send-xml-messages-to-web-services ...


3

The URL has nothing to do with TCP so you have to have something listening on TCP port 6060 that will correctly interpret the data it is sent. You could use something like nc to send the data The nc (or netcat) utility is used for just about anything under the sun involving TCP or UDP. It can open TCP connections, send UDP packets, listen on arbitrary ...


2

Your question is rather vague. What status data do you want? Please provide some examples. That said, iLO offers scripting interfaces (via HP's tool CPQLOCFG.EXE, or via Perl). See the HP documentation on iLO for details.


2

Did you try xmllint --stream?


2

I recommend XML::Simple. Very easy to pick up and is already installed.


2

look at this sample of PS3 <--> XP http://www.braham.org/playfile.txt filter 'tcp.port == 2869 && http.response' and right click decode as HTTP all the http that has: 'Content-Type: text/xml' in their header show the xml just fine if you have code that send xml in http without say so in the header, it's not nice... (in the this sample only ...


2

Run this as a startup script Cscript %WINDIR%\System32\prnmngr.vbs -d -p "Microsoft XPS Document Writer"


2

I know this is old, bur someone addressed your question as if you were trying this from a windows box. In Linux , (NOT WINDOWS...everyone) you can do this without an EXE tool. You need to use Net::ILO perl module. This will enable you to write a script that logs in to your ILO servers and interact with them. download from ...


2

Try this instead: #!/bin/bash XMLLINT_INDENT=$'\t' xmllint --encode UTF-8 --format - $*


2

If it's a .xlsx file like the Windows version uses, that's just a renamed .zip of XML and other content. For example, a spreadsheet with the following values in Sheet1: If you rename the .xlsx to a .zip, you'll find the numeric data exposed in a file xl\worksheets\sheet1.xml in the following tree: <worksheet> <sheetData> <row r="1" ...


2

Your Apache Allow/Deny directives are configured to forbid access to the file you're trying to get. These directives will likely be in your <VirtualHost> configuration, or an .htaccess file. Please edit your question with this info and we can assist in straightening out the rules.


2

If you are given just the raw XML, you can load up the XML document. Since you posted an XML fragment, I'll assume that it was exported from the log and has a <Events> root tag. The tricky part is the namespace. $xml = [xml](get-content "PathToXml.xml") $xmlns = New-Object -TypeName System.Xml.XmlNamespaceManager -ArgumentList $xml.NameTable ...


2

I had the same problem and this was the only promising looking search result. My problem was, that I was using a wrong version of the active record gem. I had version 3.1.0 installed. But with version 2.3.11 it works fine. Hope this helps.


2

You are right, there is no reason it would care which web server is serving the content. There is something different between the two that is preventing SMSPrinter from retrieving the page. Sadly there just isn't enough information to give an answer on how to fix it. Here are some things I'd start troubleshooting with. I'd start pay making sure you are able ...


2

Have a look at the Spring Security Reference! Chapter 19.5 Active Directory Authentication


2

Ah, whatever you do, consider age. These days dual core are harder to find as they are older. That means slower, per core.


2

@ewwhite it's a propriety application with very limited distribution. Well, in situations like this, where you have an application with an archaic licensing scheme, you're going to be limited in your options as hardware progresses. Dual-core CPUs are all but obsolete in the modern processor offerings from the major manufacturers. Quad-core CPUs are also ...


2

Out-File is writing a Unicode file by default. Use -Encoding to fix it: $temp = Get-Content .\bigxmlfile.xml $temp.replace("STRING1","STRING2") | out-file .\bigxmlfile.xml -force -encoding ascii Alternatively, use Set-Content: $temp = Get-Content .\bigxmlfile.xml $temp.replace("STRING1","STRING2") | set-content .\bigxmlfile.xml -force


1

FWIW - URL Rewriting does not see to be able to handle non-html pages. I am not able to get anything other than a 500 server error when the returned body is SOAP xml, regardless of rules or preconditions. In fact, the simplest rule that I can imagine - " .* " fails in the same way.


1

Wireshark can reassemble packets to show you a complete view of a stream. Have a look at the docs. This will help you to look at the XML. It wont provide an analysis specific to DLNA. If you want a nice view of the XML, I dont think Wireshark will do it directly, but if you copy / paste it in any good XML editor, it should do the trick. Even saving the XML ...


1

Possibly check some of the answers from here: http://stackoverflow.com/questions/91791/grep-and-sed-equivalent-for-xml-command-line-processing


1

Expanding a big on Maris(t?)'s answer, XML::Simple is definitely my best friend. It's dead simple, and works well for static XML files. XML::Simple is NOT good for an XML stream, nor huge (we're talking many multiples of megabytes here) XML files, but for configuration files and resource files, XML::Simple works wonderfully. I'll spare you the details, ...



Only top voted, non community-wiki answers of a minimum length are eligible