Reply To: Problem with xmllint

Learn User Support course Forums Course Discussion Problem with xmllint Reply To: Problem with xmllint


Hello Camsmariah,

When I typed xmllint example.xml it didn’t work for me. I’m using Powershell v1.0.

What did work: .\xmllint example.xml

Or you can also use .\xmllint --valid --noout example.xml

Change example.xml to the file name given in the quiz.

And about the equivalent of grep command, I use findstr. So I didn’t install grep, I only use CMD prompt.

This one worked for me: findstr -N "example string" example.xml | find /c ":"

Change “example string” to “post_type>post” or whatever string you look for.

The second code was only working on the CMD prompt, not on Powershell. Not sure why.

I hope that will work for you too.