Eclipse(Indigo and juno) error editing XML Android File

melrykimi

New Member
When I edit an xml (resource android) file in Eclipse I have these errors: \[code\]20:23:17,196 INFO [main] Main - javax.xml.transform.TransformerFactory=null20:23:17,198 INFO [main] Main - java.endorsed.dirs=C:\Program Files\Java\jre7\lib\endorsed20:23:17,202 INFO [main] Main - launchFile: C:\Users\Anderson\workspace\.metadata\.plugins\org.eclipse.wst.xsl.jaxp.launching\launch\launch.xml20:23:17,267 FATAL [main] Main - No embedded stylesheet instruction for file: file:/C:/Users/Anderson/workspace/ControleRenda/res/layout/main.xmlorg.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Users/Anderson/workspace/ControleRenda/res/layout/main.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:225) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:186) at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.Main.main(Main.java:73)Caused by: org.eclipse.wst.xsl.jaxp.debug.invoker.TransformationException: No embedded stylesheet instruction for file: file:/C:/Users/Anderson/workspace/ControleRenda/res/layout/main.xml at org.eclipse.wst.xsl.jaxp.debug.invoker.internal.JAXPSAXProcessorInvoker.transform(JAXPSAXProcessorInvoker.java:214) ... 2 more\[/code\]The xml code is this:\[code\]<?xml version="1.0" encoding="utf-8"?><LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="fill_parent" android:layout_height="fill_parent" android:orientation="vertical" ></LinearLayout>\[/code\]The main.out file logs this error: \[code\]No XML content. Please add a root view or layout to your document.\[/code\]And sometimes I have the error "Unexpected EOF". If I edit the file in notepad or notepad++, save it in the project directory and refresh eclipse; then the project runs....Can you help me? I have search the solution for this for days... Thanks!
 
Back
Top