Jump to content

aspnetguy

Members
  • Posts

    6,787
  • Joined

  • Last visited

Everything posted by aspnetguy

  1. I have these filestest.xml <?xml version="1.0"?><root xmlns="testSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="testSchema test.xsd"> <item> <subitem></subitem> </item></root> test.xsd <?xml version="1.0"?><xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="testSchema" xmlns="testSchema" elementFormDefault="qualified"><xs:element name="root"> <xs:complexType> <xs:sequence> <xs:element name="item" type="xs:string"> <xs:complexType> <xs:sequence> <xs:element name="subitem" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType></xs:element></xs:schema> How do I check to see if the xml document is following the schema?Did I even create and implement the schema correctly?In the W3Schools tutorial they used http://www.w3schools.com as the schema namespace. Does the name space have to be a url?
  2. aspnetguy

    Whoa...

    somebody had way too much time on their hands
  3. Because an extension only aqssociates the file with a specific program, it does not modify the contents of the file.You would have to open the file and manually make the changes or setup an algorithym with a set of rules to make changes for you.Or you could do a google search for some software that already does that
  4. do you have the software or do you want to write it your self?
  5. aspnetguy

    Table Layout

    tables are block elements so they will not sit side by side normally.You need to make a master table with 2 columns to hold the 2 tables.
  6. HTML <div class="scroll-box">content here...</div> CSS .scroll-box{ width: 300px; height: 125px; overflow: auto;} You can adjust the width and height to suit your situation. When the content i the <div> grows beyond the dimensions of the <div> it will create scroll bars to accomodate.
  7. it is easy to load a file and save it with a different extension but if you save it with a .htm extention os will not convert it to HTML.
  8. aspnetguy

    save options

    You cannot work with files in javascript, you need to use a server side language.
  9. I am setting up some XML data files and was wondering, how important is it to create a schema for those files?Is schema needed for every XML document?
  10. aspnetguy

    Ripper

    But his host is in the US. They will have to comply with copyright laws. I am sure that this some how breaks their terms of service.Anyway Kaijim is contacting the host and fellow in Pakistan.
  11. aspnetguy

    WAMP server

    Does anyone use WAMP Server?I know it is not recommended to use XAMPP as a production enviroment (at least not out of the box) I assume this would be the same recommendation.So, has anyone used this for a live server and secured it?
  12. depends on how you embedded the song in the first place.Can oyu post your code?
  13. aspnetguy

    CFIF

    your right you could not stop that, IMO processing the form on the same page (error handling and database actions, etc) is the best way.
  14. aspnetguy

    CFIF

    I know you want to seperate your pages but when I validate a form I either use javascript to validate it before sendign it to the processing page or process on the same page to display error messages.Session variables would work but you are adding extra trips tot he server (longer load times)
  15. aspnetguy

    CSS equivalent

    I would be surprised if this worked the same as cellpadding="5" table{ padding: 5px;} I would expect this,however, to work the same td, th{ padding: 5px;} cellspacing and margin would work much the same way.
  16. aspnetguy

    combine arrays

    figured it out. $str = "ilikejello";$salt = "cherry";$str2 = "";$arr1 = string_split($str);$arr2 = string_split($salt);$i=0;$loop = (sizeof($arr1) > sizeof($arr2)) ? sizeof($arr1) : sizeof($arr2);while($i < $loop){ if(isset($arr1[$i])) $str2 .= $arr1[$i]; if(isset($arr2[$i])) $str2 .= $arr2[$i]; $i++;}echo $str2;function string_split($str){ $str_array=array(); $len=strlen($str); for($i=0;$i<$len;$i++) $str_array[]=$str{$i}; return $str_array;}
  17. aspnetguy

    combine arrays

    I have 2 arrays ($arr1, $arr2). Both are different lengths in most cases but it is possible they could be the same length as well.What I want to do it combine these 2 arrays into a string following this pattern ($str = $arr1[0] . $arr2[0] . $arr1[1] . $arr2[1] ...etc,etc)I have made a couple attempts but my brian seems to be fried, being Monday and all, so if you could help I would appreciate it.
  18. It is part of Adobe go live...they created there own extensions or something.
  19. aspnetguy

    Ripper

    Believe me action will be taken. There is more than just shutting him down that he has to worry about, this is a crime.
  20. uninstalling the card then reinstalling probably would have worked too, hoefully I'll see you this week.
  21. aspnetguy

    Ripper

    thank you, this matter will be looked into and the admins notified.Again thank you.
  22. aspnetguy

    about domain

    read this http://www.icann.org/registrars/accreditation.htm
  23. aspnetguy

    The Drive Object

    you would have to contact your host...they probably have this disabled.
  24. I assume you have your datacolumn already defined? Can you post the code for hte whole page.
×
×
  • Create New...