recentpopularlog in

therobyouknow : parse   11

How to extract a directory and filename from a path in a string, Perl Regular Expressions - Kewl Splitpath One Liner Regex
Kewl Splitpath One Liner Regex

Check out this splitpath command:
my($text) = "/etc/sysconfig/network-scripts/ifcfg-eth0";
my($directory, $filename) = $text =~ m/(.*\/)(.*)$/;
print "D=$directory, F=$filename\n";
regular  regexp  regex  expression  regularexpression  match  matching  howto  programming  software  reference  development  perl  linux  tutorial  search  code  computing  coding  scripting  tip  path  directory  find  extract  filename  parse 
january 2010 by therobyouknow
DoctypeChanger is a Java class that lets you add, modify or remove a DOCTYPE declaration from a byte stream as it is fed into an XML parser.
DoctypeChanger is a Java class that lets you add, modify or remove a DOCTYPE declaration from a byte stream as it is fed into an XML parser. Great for standalone offline setups that require local DTD validation and not dependent on a network as usually pa
change  doctype  dtd  java  library  remove  xml  local  resource  jar  offline  validation  validate  schema  non  network  standalone  document  type  definition  dom  sax  intercept  bypass  custom  setup  contained  self  tool  modify  utility  class  free  opensource  open  source  code  programming  software  parse  parser  declaration  independent  deployment  convenience 
april 2008 by therobyouknow
How to turn off fetching a DTD from the internet/remote network (e.g. at the w3c) when parsing xml using sax
public org.xml.sax.InputSource resolveEntity(java.lang.String
p1,java.lang.String p2) throws org.xml.sax.SAXException, java.io.IOException
{
return new InputSource("/dtd/empty.dtd");
}
java  sax  xml  dtd  disable  off  override  class  defaulthandler  fetch  internet  parse  inherit  local  network  ignore  doctype  jdom 
december 2007 by therobyouknow

Copy this bookmark:





to read