CSS element parser
-
Anyone know of a CSS 2 compliant parser control/library to allow parsing of a CSS file and be able to change colors, background images, etc? I currently have a control that parses the CSS and puts it into a XML file. I can then access the XML node to get to the element. However, I am looking for a control to parse the sepecific elements and that is compliant with the CSS standards.
-
Anyone know of a CSS 2 compliant parser control/library to allow parsing of a CSS file and be able to change colors, background images, etc? I currently have a control that parses the CSS and puts it into a XML file. I can then access the XML node to get to the element. However, I am looking for a control to parse the sepecific elements and that is compliant with the CSS standards.
-
Thanks for the reference. I will take a closer look. What is the best method of converting the java classes to C#? I have only tried this once before by using the conversion wizard in VS and wasn't successful. Did you code the conversion manually or use a conversion tool? Thanks
-
After taking a closer look, it looks like these classes convert the CSS file into a DOM XML document. Does the CSSParser also have functions to parse the elements of the XML document, or do you need to use SAC 1.3? I currently have a control that converts the CSS file to XML and back. This sounds similar to the descripition of the CSSParser. I am also looking to be able to edit the elements of the node in the XML tree and stay CSS complinant. The control I have does not have the ability to parse the elements of the XML document. Did you have to convert/use both the CSSParser and the SAC 1.3? Or, was everything in the CSSParser?
-
After taking a closer look, it looks like these classes convert the CSS file into a DOM XML document. Does the CSSParser also have functions to parse the elements of the XML document, or do you need to use SAC 1.3? I currently have a control that converts the CSS file to XML and back. This sounds similar to the descripition of the CSSParser. I am also looking to be able to edit the elements of the node in the XML tree and stay CSS complinant. The control I have does not have the ability to parse the elements of the XML document. Did you have to convert/use both the CSSParser and the SAC 1.3? Or, was everything in the CSSParser?
Hi, The conversion was done using the JLCA (Java Language Conversion Assistant) that comes with VS .NET 2005. My task was only to convert the source to a usable format for other team members. From memory though (and it was a while ago) they were attempting to achieve what you are trying to achieve, so I assume the CSSParser application contains all that is required. Sorry for my vagueness but I was not directly involved in the latter stages of development, I was only called on because I knew both languages (JAVA & .NET). Regards, g00fy
-
Hi, The conversion was done using the JLCA (Java Language Conversion Assistant) that comes with VS .NET 2005. My task was only to convert the source to a usable format for other team members. From memory though (and it was a while ago) they were attempting to achieve what you are trying to achieve, so I assume the CSSParser application contains all that is required. Sorry for my vagueness but I was not directly involved in the latter stages of development, I was only called on because I knew both languages (JAVA & .NET). Regards, g00fy
Thanks. I tried converting the SAC 1.3 java classes with the JLCA in Visual Studio 2003. The conversion had 3 errors and 1 warning. I haven't had a chance to check into the errors. I will take a look at the CSSParser classes as well. Thanks for your help.
-
Hi, The conversion was done using the JLCA (Java Language Conversion Assistant) that comes with VS .NET 2005. My task was only to convert the source to a usable format for other team members. From memory though (and it was a while ago) they were attempting to achieve what you are trying to achieve, so I assume the CSSParser application contains all that is required. Sorry for my vagueness but I was not directly involved in the latter stages of development, I was only called on because I knew both languages (JAVA & .NET). Regards, g00fy