update copyright
[fedora-idea.git] / xml / impl / src / com / intellij / xml / util / XmlElementFactory.java
blobd9bdc0706309088eb1596a5db651d757a542beaa
1 /*
2 * Copyright (c) 2000-2006 JetBrains s.r.o. All Rights Reserved.
3 */
5 package com.intellij.xml.util;
7 import com.intellij.psi.PsiManager;
8 import com.intellij.psi.xml.XmlText;
9 import com.intellij.util.IncorrectOperationException;
11 /**
12 * @author mike
14 public class XmlElementFactory {
15 private XmlElementFactory() {
18 public static XmlText createXmlTextFromText(PsiManager psiManager, String text) throws IncorrectOperationException {
19 return com.intellij.psi.XmlElementFactory.getInstance(psiManager.getProject()).createTagFromText("<foo>" + text + "</foo>").getValue().getTextElements()[0];