IL'TRY TO EXPLAIN THIS AND I HOPE I HAVE ANY ANSWER, TO KNOW WHAT TODO
THE CODE AT THE END OF THE MESSAGE IS FROM AN OPENOFFICE DOCUMENT (SOMETHING LIKE MS WORD) I'M TRYING TO DEVELOP AN APPLICATION THAT CAN READ IT
I ALREADY HAVE ONE APP WICH HAS 2 XML FILES AS DATAPROVIDERS
THIS IS IT (FLEX2 B1)
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*"
creationComplete="srv.send()">
<mx:Style source="main.css"/>
<mx:Script>
<![CDATA[
import mx.messaging.*;
import flash.events.DataEvent;
import mx.rpc.events.ResultEvent;
private function cargarDatos()
{
srv.url = "";
srv.send();
}
private function cargarDatos2()
{
srv.url = "";
srv.send();
}
private function filtrar(item:Object):Boolean
{
return item.name.match(new RegExp("^" + inputText.text, "i\*\t\s"));
// return item.imagen.match(new RegExp("^" + imagenes.text, "i\*" + /abc|xyz/));
}
]]>
</mx:Script>
<mx:HTTPService id="srv" resultFormat="e4x" useProxy="false"/>
<mx:XMLListCollection id="xlc"
source="{srv.result.*}"
filterFunction="filtrar" />
<mx:Panel width="568" height="569" layout="absolute">
<mx:DataGrid dataProvider="{xlc}" height="419"
editable="false" width="150" id="datagrid" scroll="true" change="xlc.refresh(),cargarDatos.refresh()" x="0" y="0">
<mx:columns>
<mx:Array>
<mx:DataGridColumn columnName="name" showDataTips="true"/>
</mx:Array>
</mx:columns>
</mx:DataGrid>
<mx:TextArea width="353" height="290" textAlign="justify" htmlText="{datagrid.selectedItem.desc}"
wordWrap="true" y="0" styleName="main.css">
<mx:layoutConstraints>
<mx:Anchor right="30"/>
</mx:layoutConstraints>
</mx:TextArea>
<mx:Button x="185" y="454" label="Datos" click="cargarDatos()"/>
<mx:Button x="251" y="454" label="Datos2" click="cargarDatos2()"/>
<mx:Image x="369" y="298" id="imagenes" width="169" height="178" visible="true" scaleContent="true" source="{datagrid.selectedItem.imagen(true)}"/>
<mx:ControlBar>
<mx:layoutConstraints>
<mx:Anchor bottom="0"/>
</mx:layoutConstraints>
<mx:TextInput id="inputText" width="139"
change="xlc.refresh()" text="Buscar" backgroundColor="#f0eff1"/>
</mx:ControlBar>
</mx:Panel>
</mx:Application>
THIS APP LOADS A XML FILE AND USING E4X IT SEARCHES TROUHGT IT
(IT HAS A COUPLE OF ERRORS I'M WORKING ON, BUT STILL WORKS)
THIS IS PART OF ONE OF THE XMLS:
<?xml-stylesheet type="text/css"?>
<catalog>
<libro>
<name>A orillas de una laguna.</name>
<desc><![CDATA[Libro de Edmundo Batres Ledón, Roque Ballinas Ballinas, Francisco Fonz Chan, <B>BUUR</B> a través <I>DARR</I>; consta de 75 pp. La edición fue de 1,000 ejemplares. vease]]></desc>
<imagen>FOTOS/A orillas de una laguna.jpg</imagen>
<video>VIDEOS/lema.flv</video>
<audio>AUDIO/1.mp3</audio>
<otros>OTROS/Discurso por el instituto.pdf</otros>
</libro>
</catalog>
*************************************************************************************
THE QUESTIONS ARE:
IS IT POSSIBLE TO USE THE OPENOFFICE DOCUMENT INSTEAD OF DOING THE CHANGE TO XML BY TIPYING ALL OVER AGAIN
IF SO WHERE CAN I FIND SOME DOCS ABOUT IT
I KNOW THE DOCUMENT IS IN XML BUT IT HAS A LOT OF XSLT THAT I'M NOT SURE FLASH COULD READ
HOPE MY QUESTIONS ARE NOT TO HARD TO ANSWER, CAUSE THEY ARE FOR ME
*************************************************************************************
<?xml version="1.0" encoding="UTF-8" ?>
- <office:document-content xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" office:version="1.0">
<office:scripts />
- <office:font-face-decls>
<style:font-face style:name="Tahoma1" svg:font-family="Tahoma" />
<style:font-face style:name="Courier New" svg:font-family="'Courier New'" style:font-family-generic="modern" />
<style:font-face style:name="BookAntiqua" svg:font-family="BookAntiqua" style:font-family-generic="roman" />
<style:font-face style:name="Arial Unicode MS" svg:font-family="'Arial Unicode MS'" style:font-pitch="variable" />
<style:font-face style:name="Tahoma" svg:font-family="Tahoma" style:font-pitch="variable" />
<style:font-face style:name="Batang" svg:font-family="Batang, ë°"í" style:font-family-generic="roman" style:font-pitch="variable" />
<style:font-face style:name="Times New Roman" svg:font-family="'Times New Roman'" style:font-family-generic="roman" style:font-pitch="variable" />
</office:font-face-decls>
- <office:automatic-styles>
- <style:style style:name="P1" style:family="paragraph" style:parent-style-name="Standard" style:master-page-name="Standard">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.423cm" fo:text-align="justify" style:justify-single-word="false" />
</style:style>
- <style:style style:name="P2" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.423cm" fo:text-align="justify" style:justify-single-word="false" />
<style:text-properties fo:color="#000000" />
</style:style>
- <style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
<style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.423cm" fo:text-align="justify" style:justify-single-word="false" />
</style:style>
- <style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
- <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.423cm" fo:text-align="justify" style:justify-single-word="false" fo:orphans="0" fo:widows="0" style:text-autospace="none">
- <style:tab-stops>
<style:tab-stop style:position="4.636cm" />
</style:tab-stops>
</style:paragraph-properties>
</style:style>
- <style:style style:name="P5" style:family="paragraph" style:parent-style-name="Standard">
- <style:paragraph-properties fo:margin-top="0cm" fo:margin-bottom="0.423cm" fo:text-align="justify" style:justify-single-word="false" fo:orphans="0" fo:widows="0" style:text-autospace="none">
- <style:tab-stops>
<style:tab-stop style:position="4.636cm" />
</style:tab-stops>
</style:paragraph-properties>
<style:text-properties fo:color="#000000" />
</style:style>
- <style:style style:name="T1" style:family="text">
<style:text-properties fo:color="#000000" fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold" />
</style:style>
- <style:style style:name="T2" style:family="text">
<style:text-properties fo:font-variant="small-caps" />
</style:style>
- <style:style style:name="T3" style:family="text">
<style:text-properties fo:color="#000000" fo:language="en" fo:country="US" fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold" />
</style:style>
- <style:style style:name="T4" style:family="text">
<style:text-properties fo:color="#000000" fo:language="en" fo:country="US" />
</style:style>
- <style:style style:name="T5" style:family="text">
<style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic" />
</style:style>
- <style:style style:name="T6" style:family="text">
<style:text-properties fo:color="#000000" />
</style:style>
</office:automatic-styles>
- <office:body>
- <office:text>
- <text:sequence-decls>
<text:sequence-decl text:display-outline-level="0" text:name="Illustration" />
<text:sequence-decl text:display-outline-level="0" text:name="Table" />
<text:sequence-decl text:display-outline-level="0" text:name="Text" />
<text:sequence-decl text:display-outline-level="0" text:name="Drawing" />
</text:sequence-decls>
- <text:p text:style-name="P1">
<text:span text:style-name="T1">Abdo Andrade, Alberto.</text:span>
- <text:p text:style-name="P2">
Médico cirujano. Nació en Tabasco, el 13 de mayo de 1957. Forma parte del Cuerpo Académico de Ciencias Médicas Especializadas de la
<text:span text:style-name="T2">dacs</text:span>
. Trabaja en las Líneas de Generación y Aplicación del Conocimiento denominadas "Prevención y tratamiento especializado de las enfermedades de mayor incidencia en la población".
</text:p>
</text:p>
</office:text>
</office:body>
</office:document-content>
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

